2

I have extracted the bbox coordinates from a shapefile and want to create a hyperlink for google maps respectively OSM. When you click on the hyperlink the map should be zoomed to the bbox extend and most perfectly the bounding rectangle should be rendered. Do you know how to do it? Thanks!

1
  • It would be ok just to know the format and parameters of a osm/google maps hyperlink. Like coordinates, zoom factor and maybe some additional render information if it exists. Commented Jul 21, 2014 at 10:49

1 Answer 1

2

For Openstreetmap, the parameters are quite simple:

https://www.openstreetmap.org/#map=10/47.1911/2.4884

https://www.openstreetmap.org/#map=  : base url
10/                                 : zoom level
47.1911/                            : latitude of center, North positive
2.4884                              : longitude of center, East positive

additionally with a marker:

https://www.openstreetmap.org/?mlat=47.1911&mlon=2.4884#map=10/47.1911/2.4884

https://www.openstreetmap.org/?   : base url
mlat=47.1911&                    : latitude of marker
mlon=2.4884#                     : longitude of marker
map=10/                          : zoom level
47.1911/                         : latitude of center
2.4884                           : longitude of center
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.