9. Google Maps Static API % Axis limits lms=[ -123-[14 8]/60 49+[10 13.5]/60 ]; % plot_google_maps.m from the mathworks user contributed files database: % https://www.mathworks.com/matlabcentral/fileexchange/27627-zoharby-plot_google_map % accesses the static google maps map tiles, returning a lat/long gridded % image that is just bigger than the given limits. clf; axis(lms); [Glon,Glat,Gimg]=plot_google_map(‘maptype‘,‘satellite‘,‘refresh‘,0,‘autoaxis‘,0); clf; % Now draw it! m_proj(‘utm‘,‘lat‘,lms(3:4),‘lon‘,lms(1:2)); m_image(Glon,Glat,Gimg); m_grid(‘tickdir‘,‘out‘,‘box‘,‘fancy‘); m_ruler([.4 .9],1.05,6,‘tickdir‘,‘in‘,‘ticklen‘,.01);
原文:https://www.cnblogs.com/ww-GRACE/p/13275476.html