iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
989 stars 552 forks source link

Mobile plugin suggestion: Move map to follow player location #709

Open enigmaquip opened 10 years ago

enigmaquip commented 10 years ago

Would it be possible for a mobile plugin that updates the map center based on current location. Maybe update as the location leaves the screen or nears the edges.

jonatkins commented 10 years ago

It would probably be easiest to include this as part of the existing 'show player location' system, rather than a new plugin. Tap once on the icon to move to your location, a second time to start follow mode.

Drag/zoom the map would exit the follow mode.

fkloft commented 10 years ago

I already implemented that last week, but without the "move when pin moves towards edge". This way, it would cause to much traffic. Will look into this soon.

jonatkins commented 10 years ago

Actually, a full smooth scroll might even be possible, keeping the marker in the exact centre of the screen at all times.

I think the map data request code is already OK - it'll only start new requests when the map moves far enough to bring new tiles into view.

The COMM code will send new requests on every move though - but this is due for an update and will be fixed.

leCradle commented 10 years ago

I already implemented this too (as I started writing on the user location plugin)...Didn't pushed it because of 2 reasons: 1.) massive data traffic (should be no problem anymore as @jonatkins stated) 2.) we get a location update every second, so the map is moved/centered every second too...consequently, IITC didn't finish any request If it's possible that IITC finishes new requests even though the map is moved again and again, it's very easy to implement a follow mode for the user location plugin.

Z1mDMan commented 5 years ago

Has this been implemented on iOS?

johnd0e commented 5 years ago

Has this been implemented on iOS?

Try it yourself: https://apps.apple.com/app/iitc-mobile/id1032695947 or https://testflight.apple.com/join/UOHpFy01.

And you can meet ios app author in our project IITC-CE or in TG chat: https://t.me/iitc_group (@hubert_z)