jmelosegui / GooglemapMvc

The control wraps Google maps API simplifying the use of Google maps in ASP.NET MVC applications.
MIT License
117 stars 61 forks source link

Low bandwidth connection, offline and caching of maps #127

Closed papyr closed 7 years ago

papyr commented 7 years ago

Hello, in countries where the connection speeds are no the best... or disconnected scenarios,

can you please add a way to turnon cache mode for the maps.

So on the control something like [Cache-enabled-Map-True] attribute could be added.

thanks

jmelosegui commented 7 years ago

What is exactly what you want to cache? What do you mean by?

cache mode for the maps

If you want to cache the map tiles, that function has to exist on google map APIs, and I think (although I am not a lawyer) it is explicitly prohibited here (http://maps.google.com/help/terms_maps.html) on section 2.c.

There is also an interesting discussion on the subject here.

papyr commented 7 years ago

Ohh common man!! Web apps & devs are constantly caching fonts, images, code, audio, video, don't you think they would all be sued by caching!!!

Here you go and this one is actually directly from google on how to setup the maps. We just need someway to enable it... trust me, you will thanks me when the speed quadruples! :)

If your search the terms, there is no caching mentioned. Without getting too facetious, its simple, we need to buffer and cache the user content to reserve up the call.

For e.g. 90% of the work done by a team, like construction is all around the same area of construction, so it makes a lot of sense to server up the same with a simple object, or memcachedb, I can code and merge it in if you could show me where to handle the caching/buffering for the maps.