Giter VIP home page Giter VIP logo

Comments (8)

modos189 avatar modos189 commented on May 20, 2024

Increasing quality will require increasing traffic. It is not uncommon for IITC to get confused when there is poor Internet connection away from city during any operation.

from ingress-intel-total-conversion.

johnd0e avatar johnd0e commented on May 20, 2024

Increasing quality will require increasing traffic.

Well, IITC was created many years ago, and since then mobile internet get much better, so I suppose we can afford it.
In many cases connection is fast enough, and traffic even may not be charged.

Besides, this could be optional.

from ingress-intel-total-conversion.

modos189 avatar modos189 commented on May 20, 2024

As optional, it would be useful.

But even now, we sometimes play in places where internet is almost absent)

from ingress-intel-total-conversion.

modos189 avatar modos189 commented on May 20, 2024

Option should only be placed in the mobile version, I think

from ingress-intel-total-conversion.

johnd0e avatar johnd0e commented on May 20, 2024

Option should only be placed in the mobile version, I think

Could be useful in desktop as well.

But I wonder how we should implement this option.
Simplest way is to control it with plugin, but applying it can require full iitc reloading.

from ingress-intel-total-conversion.

johnd0e avatar johnd0e commented on May 20, 2024

Some general thoughts:

  • Standard tile size is 256*256.
    • Some tile providers are able to deliver other sizes, such as 128x128 and 512x512.
  • Leaflet can detect hi-res mode (see L.Browser.retina), and use hi-res icons (if defined) and map tiles (see below):
    • Leaflet has template {r} to request high-res tiles, this can be used to add scale modifier @2x to url (e.g. thunderforest).
      NB: some services (e.g. HERE) use other url parameters to specify tile size.
    • Also leaflet has special layer option detectRetina, which is more universal.
      NB: this option is broken in our current leaflet version (1.3.0), so we need to update it (see #78).
  • While using hi-res tiles all labels/captions get smaller.
    Workarounds:
    • Some services allow to specify ppi parameter
    • Labels could be added as separate layer (in some services)

from ingress-intel-total-conversion.

johnd0e avatar johnd0e commented on May 20, 2024
  • detectRetina option is individual per tilelayer, but better if we could control it in single place (still leaving the possibility to disable it per some maps).
  • Sometimes we may need to force-disable the option (e.g.: poor connection conditions).
  • Sometimes we may need to force-enable the option even on non-retina screen.
  • We have not rely solely on detectRetina, as:
    • The option has no effect on some maps with own API (Bing, Google, Yandex).
    • There could be other possibilities to increase tile resolution (like request 512*512 tiles, which is available in some providers).

from ingress-intel-total-conversion.

johnd0e avatar johnd0e commented on May 20, 2024

I've made some corrections in Bing and Yandex plugins (and their upstreams).
Now maps seems looking better.

But anyway, we need global retina option.

from ingress-intel-total-conversion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.