Rank: 467 based on 285 downloads (last 30 days) and 1 file submitted
photo

Zohar Bar-Yehuda

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Zohar
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Apr 2014 Screenshot plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda plot, google, map, mapping, wgs, wgs84 285 77
  • 4.97222
5.0 | 41 ratings
Comments and Ratings by Zohar View all
Updated File Comments Rating
06 Oct 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

Pietro - such a feature can be added quite easily.

In the meantime, if you have the mapping toolbox, you can use a few lines of code to achieve this:

load toolbox\map\mapdisp\private\regions.mat worldRegions
[tf,pos]=ismember('Turkey',{worldRegions.name});
axis([worldRegions(pos).lonlim worldRegions(pos).latlim])
plot_google_map

31 Aug 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

wiwi - there seem to be random errors with some computer IPs.
Try obtaining an API key from Google and setting it, it would probably solve your problem.

If you need more help, feel free to contact me:
zoharby@gmail.com

13 Aug 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

Gary - works fine here without a key. Maybe it depends on your IP which is treated differently by Google for some reason.
Anyway, obtaining an API key and setting it is a matter of minutes, and would probably solve your problem.

02 Jul 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

Shatrughan - awesome tip. I will try to integrate it into the script soon.

29 Jun 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

pietro - that would be quite tricky, as it also depends on your screen size etc.
I wanted to add a scale indicator at the bottom of the map, but never got to it. Hope to add it sometime...

Comments and Ratings on Zohar's Files View all
Updated File Comment by Comments Rating
22 Oct 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Dowray, Sunil

22 Oct 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Dowray, Sunil

Hi Zohar, thanks for sharing this wonderful piece of code. I have a query, I'm trying to plot data points which are mapped on to corresponding co-ordinates. The problem is, the number of data points are large (around 15000 - 35000 points). I'm able to plot these data points on the map, but facing issues in zooming/panning speed. The map reaction becomes too slow whenever I try to zoom in or out with the data points on the map. Is there any limitations in the number of points on the map or should I check for any other parameter to overcome this issue.. Thanks

21 Oct 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Larry

plot_google_map() has broken with R2014b. (No sure about R2014a)

Line 108 gca returns now returns an axes object instead of a double as previously.

06 Oct 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda pietro

06 Oct 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Bar-Yehuda, Zohar

Pietro - such a feature can be added quite easily.

In the meantime, if you have the mapping toolbox, you can use a few lines of code to achieve this:

load toolbox\map\mapdisp\private\regions.mat worldRegions
[tf,pos]=ismember('Turkey',{worldRegions.name});
axis([worldRegions(pos).lonlim worldRegions(pos).latlim])
plot_google_map

Contact us