Rank: 345 based on 364 downloads (last 30 days) and 1 file submitted
photo

Zohar Bar-Yehuda

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Zohar Bar-Yehuda
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 Nov 2014 Screenshot zoharby/plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda potw, pick of the week, wgs, google, google earth, kml 364 84
  • 4.95
5.0 | 47 ratings
Comments and Ratings by Zohar Bar-Yehuda View all
Updated File Comments Rating
25 Nov 2014 extrema.m, extrema2.m Search all extrema points of a time series or a surface with/without NaN's. Author: Carlos Adrian Vargas Aguilera

Simple and useful.

26 Oct 2014 zoharby/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 - thanks for the heads up. I'm very busy in the coming weeks, will fix and release a new version as soon as I have some free time.

06 Oct 2014 zoharby/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 zoharby/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 zoharby/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.

Comments and Ratings on Zohar Bar-Yehuda's Files View all
Updated File Comment by Comments Rating
27 Nov 2014 zoharby/plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Ilya Shipachev

Great reinforsment to work with GPS data.
Thanks!

20 Nov 2014 zoharby/plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Gijs

Update from previous rating -- the code was modified to work with 2014b, so I'm changing my previous 4* rating to 5*!

17 Nov 2014 zoharby/plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Alireza

Hello Zohar,
I was wondering if it's possible to download Google Maps and have it on computer and plot the coordinates without having internet?
also is it possible to have the initial plot with a desired zoom level.

Thanks,
Alireza

11 Nov 2014 zoharby/plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Giorgos Papakonstantinou

Hi Zonar and thank you for you nice submission.
As already users have previously noted, there is an issue when running the code with R2014b, which originates from the fact the every handle is an object and not a double.

You have nicely included a ResizeFcn, which is invoked when the figure is resized.
In the ResizeFcn you use break in the for loop. Can you explain me the reason of doing that?
Because if you have two axes with google maps
i.e.
subplot(1,2,1); plot_google_map; subplot(1,2,2); plot_google_map;

the ResizeFcn function does not re-plot both maps and you turn up with a bad resolution in one of the two.

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

This is a helpful piece of code.

Unfortunately, as mentioned below, it breaks with 2014b. I'm having an issue at line 109 (inputParams.(['ax' num2str(axHandle*1e6,'%.0f')]) = varargin;). The error message that I'm getting is: "Undefined function 'mtimes' for input arguments of type 'matlab.graphics.axis.Axes'."

Contact us