MATLAB Answers

Add Google Maps to default basemap.

18 views (last 30 days)
Sanjay
Sanjay on 14 Nov 2019
Commented: Julian on 14 May 2020
Hello, I have the Mapping toolbox and a Google API key. How do I add Google as a basemap? It is not clear from the addCustombasemap documentation.

  0 Comments

Sign in to comment.

Accepted Answer

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi on 21 Jan 2020
In addCustomBasemap(basemapName,URL) the parameter basemapname refers to the name that you will use to specify your custom basemap. ‘URL’ specifies the website that provides the map data.
For example
name = 'opentopomap';
url = 'a.tile.opentopomap.org';
addCustomBasemap(name,url)
Adds the custom basemap 'opentopomap' to the list of basemaps for use with mapping functions. Now you could use this basemap with mapping functions

  0 Comments

Sign in to comment.

More Answers (1)

Sanjay
Sanjay on 21 Jan 2020
Hello Sahiti,
Thanks.
I was specifically looking for the parameters for Google Maps. However Kunal Patil did send them to me.
Sanjay Abhyankar

  1 Comment

Julian
Julian on 14 May 2020
Hello Sanjay,
could you share the information for everyone?
Julian

Sign in to comment.