Google Maps V3 Show Map on Google Maps Link - google-maps

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.

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?

Related

Google Map UI Experience not available in api (borde, style)?

Google Search gives a perfect UI Experience, while I cannot able to bring the same in google api. please advise how to proceed.
I am using kml layer for borderline to country and states, but data is not perfect as google
I tried google embed map, But I don't know how to write the click event on the map, because the map is bind on I-frame.
i attached the image below from google maps
enter image description here
There is already a feature request for this in the IssueTracker for Google Maps Platform. You can star this issue to get updates on it.
https://issuetracker.google.com/35816953

Places Autocomplete: Must I use a Google map if I Geocode the result with Apple?

Trying to implement a search feature for USA cities in my IOS app. My goal is to use Google's Autocomplete API while legally avoiding the use of a Google map.
So, if I use Places Autocomplete API to display a list of suggested cities as the user types do I have to use a Google map if I geocode the chosen autocomplete result through apple with CLGeocoder?
Google says you must use their data in their maps. However, if I geocode through Apple to retrieve the coordinates for display on a map, the map data isn't coming from Google. Is this legal?
I know Airbnb uses Googles places api but they use Apple maps.
According to Places API Policies:
If your application displays Google Places API Web Service data on a map, that map must be provided by Google.
If your application displays Google Places API Web Service data on a page or view that does not also display a Google Map, you must show a "Powered by Google" logo with that data. For example, if your application displays a list of places on one tab, and a Google Map with those places on another tab, the first tab must show the "Powered by Google" logo.
So you can use Places autocomplete without a Google map, but in this case the logo is required.
https://developers.google.com/places/web-service/policies

Google Maps - Link from static image with markers to full maps.google.com

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"
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.
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:
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

Custom map in Google Map?

On a website I see they use Google Map, but the map looks special and is different from other Google Maps I saw. Is that special-looking map provided by Google Maps or made by the website themselves?
I checked "My Maps" on Google Maps and didn't find related options.
A website with special-looking Google Map tiles
It's called Styled Maps. See the documentation and examples here: https://developers.google.com/maps/documentation/javascript/styling?hl=en

Embeded google street view

Is it possible to have a google map embeded street view panorama of a given address in your page?
All the codes I have came across work with coordination, I'm looking for "address", since if you just use coordination you will have to set pov and all that,
Google seems to do that itself, look at the panorama picture here:
http://maps.google.ca/maps/place?hl=en&sugexp=kjrmc&cp=10&gs_id=z&xhr=t&biw=1680&bih=874&gs_upl=&bav=on.2,or.r_gc.r_pw.,cf.osb&um=1&ie=UTF-8&q=toyota+calgary&fb=1&gl=ca&hq=toyota&hnear=0x537170039f843fd5:0x266d3bb1b652b63a,Calgary,+AB&cid=16440335169618939517&ei=VpqYTpPsLbCrsALi0LnqBA&sa=X&oi=local_result&ct=map-marker-link&resnum=1&sqi=2&ved=0CF8QrwswAA
Thanks
Yes, using the Google Maps Javascript API V3. Take a look here: http://code.google.com/apis/maps/documentation/javascript/services.html#StreetView
You can also embed Street View on your page by just using Google Maps.
Search for the address on Google Maps.
Go to the Street View for the location.
Click the link button in the upper-right hand corner above the map.
Click the 'Customize and preview embedded map' link.
A new page will open up with some customization opens and the code to embed the map/image on your page.
Yes you can. All you need is a google decoder who will decode your address. Another way is to directly pass your address as a part of the url to google.
When using decoder, you will get the result in the form of a latitude longitude object which you can use to reset/set your map's marker
There is no way to accurately set the heading automatically and no way to set the pitch and fov (field of view) - BUT if you figure these out manually you can create a URL that fetches a static image with those settings from Google
Take a look at this tutorial on the Street View Image API