Open enigmaquip opened 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.
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.
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.
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.
Has this been implemented on iOS?
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
)
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.