1
votes

I need to redirect from a static google maps image via the Static Maps API to maps.google.com.

I have multiple markers on the map. Example: "http://maps.googleapis.com/maps/api/staticmap?size=235x227&maptype=roadmap&markers=37.970982,23.724559|37.971487,23.724953|37.973291,23.726862"

enter image description here

I need the proper url format that, when the image is clicked, will redirect to maps.google.com with all markers placed on the map. I cant find the documentation on how to do this.

1

1 Answers

2
votes

There are no way to add markers into the google maps now.. so the answer is no.

However, you can build a custom page, which uses the google maps API and you can add markers that way.

I built a sample page here in github.

so for your map:

enter image description here

you can wrap it with an a element which link to your page with the same option like this sample: http://kylelam.github.io/SO/customMarkers.html?size=235x227&maptype=roadmap&markers=37.970982,23.724559|37.971487,23.724953|37.973291,23.726862