Reputation: 33
I am using a javascript Google Maps V3 to show the location of places I have on my site, I can only offer a small view on my site so anyone who wants to see the larger map on google should either click on the Google icone on the bottom left, or in some cases I saw a link/button on the map stating "click to show on Google Maps".
So my question is how to show the link/button on my map that can open the same location on google maps site.
Upvotes: 0
Views: 528
Reputation: 18109
Google map provides an option to customize the link by adding some parameters for viewing map.
You can get the list of parameters here: http://alvarestech.com/temp/routeconverter/RouteConverter/navigation-formats/src/main/doc/googlemaps/Google_Map_Parameters.htm
You'll need to pass the parameters to the link.
Example: https://www.google.com.au/maps/preview/@,,
You can also refer this post for more details: How do I link to Google Maps with a particular longitude and latitude?
Upvotes: 0