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