How to setup multiple begin latitude, longitude and zoom? For example, passing them as parms within the URL
The idea is to setup links for different initial maps, for example, Madrid, London, etc
Thanks
Gustavo

Comments

phayes’s picture

You have several options...

If you are using the latest unstable version of geobrowser you can create multiple maps each with a different start location. When in fullscreen mode you can also pass lat, lon, and zoom parameters.. Create a map, hit the "full screen" button, and check out the URL - you will see some start_lat, start_lon, and start_zoom parameters that can be modified

Cheers,

Patrick

adminfor@inforo.com.ar’s picture

Status: Active » Closed (fixed)

Thanks! Works great
quick examples:
http://masmapas.com/mapa/mapa-de-buenos-aires
http://masmapas.com/mapa/mapa-de-madrid
Going to close
Gustavo

adminfor@inforo.com.ar’s picture

Is there any need to filter these parms against code injections?

phayes’s picture

I usually have code injection in mind as I code, feel free to look at the code to double-check

P

phayes’s picture

Right - these params are not ever passed via SQL. They are simply callbacks to the javascript. So a user could modify them to change their own personal lat/lon on the client side but could never change anythign on the server

P