Hello everyone!
Here is a little implementation of a slippy map (aka. a map where you zoom and pan around) that made using my touch library and data from openstreetmap.org. I’ve used OpenStreetMap because I found that it was the easiest tile provider out there (it’s free, easy to use and setup and doesn’t require an API key). However, feel free to customize it with other maps if you want!
By the way, I might improve my code (by adding helper functions to convert from lat/long to map coordinates or geolocation,…) or make it an easy to use library (like Leaflet), especially if I see that there is interest.
Have fun!
@dadaroulin Nice program. Add an option that zooms in a little each time you touch a map location.
@dadaroulin - yeah it is neat. Expanding on @dave1707 's suggestion, make the location selected with the touch the centre of the screen. Long touch for zoom. So short touch centre long touch zoom
@dadaroulin i don’t see your code? Would appreciate to see it if still available…Thanks.
@Bri_G By any chance do you have a copy of this slippy map iimplementation?
@piinthesky - no - I don’t remember seeing a post with the code attached. Sorry. I’ll check through my downloads just in case I have.
@piinthesky - Hey! Apparently the code disappeared from the forum from some reason…
Anyway, I think I found the original project in my documents:
Map.zip (3.2 KB)
I’ve just tested it, it seems like it still works!
@dadaroulin it works really well, wonderful! Exactly what i was looking for. Many thanks.
Strange… when connected to wifi all works, but when connected by 4G it gives error: internet is offline, even though the internet connection is good. Do you see that? Any ideas how to fix?