Rank: 316 based on 360 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 360 45
  • 5.0
5.0 | 28 ratings
Comments and Ratings by Zohar View all
Updated File Comments Rating
09 Apr 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

Hi Clemens,

I've updated the Known Issues section, hopefully addressing your problem. Hope this helps:

2) Saving the map with an image/matrix overlay drawn on top of it (especially a semi-transparent one) can sometimes cause unexpected results (map not showing etc.). If you're encountering such problems, it's recommended to use the export_fig submission:
http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig
The combination that seems to work best:
set(gcf,'renderer','zbuffer')
export_fig('out.jpg')

25 Mar 2014 Flappy Bird for MATLAB MATLAB replica of the viral mobile game "Flappy Bird" Author: Mingjing Zhang

08 Feb 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, are you sure you're using the latest version?
If yes, you can try putting a breakpoint at line 316 - urlwrite(url,filename);
copy the url to your browser and see if it works there.
Anyway, if you need more help feel free to contact me:
zoharby@gmail.com

18 Dec 2013 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

Naveed - v3 is only for the javascript API. This code uses the Static Maps API which still uses v2.

If you already have the heatmap data as a matrix, you can simply plot it with IMAGE and give an AlphaData matrix with values <1 to make it semi transperent.
If you have point data, you'll first need to convert it to a heatmap matrix. I need to do it myself for a project in the coming weeks. If I don't find an existing solution I'll probably create one and hopefully submit it to the FEX.

15 Dec 2013 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

Gabriel - there shouldn't be any recursion in this code. Please send me an example how to reproduce the error.

Comments and Ratings on Zohar's Files View all
Updated File Comment by Comments Rating
14 Apr 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 Clemens

Just figured out: After rendering with set(gcf,'renderer','opengl'), even saveas(gcf, 'out.jpg') works.

14 Apr 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 Clemens

Hi Zohar,

thank you a lot for your support! I tried your suggestion and with the rendering setting of set(gcf,'renderer','zbuffer'), the background (map) + transparent settings vanished again.

set(gcf,'renderer','opengl') and exporting with export_fig.m though works for me :)

Best Regards

09 Apr 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

Hi Clemens,

I've updated the Known Issues section, hopefully addressing your problem. Hope this helps:

2) Saving the map with an image/matrix overlay drawn on top of it (especially a semi-transparent one) can sometimes cause unexpected results (map not showing etc.). If you're encountering such problems, it's recommended to use the export_fig submission:
http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig
The combination that seems to work best:
set(gcf,'renderer','zbuffer')
export_fig('out.jpg')

09 Apr 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 Clemens

Works perfectly for me. I have only the issue already raised by Larry, that if I export my figure to a picture, the map is missing. Do others also have troubles with that or any workaround except screenshots?

26 Mar 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 GALLOU, Roger

Hi Zohar,

I've the same message as Larry. When I post URL given in example in a Web browser (Firefox with no proxy configured), I can see the staticmap of Google Maps.
I've not problems with my quotas and I've really loaded the last version.
Can you give me some help on what it happens ?

Thanks. Regards.

Contact us