Skip to content

Instantly share code, notes, and snippets.

@dbuscombe-usgs
Created July 26, 2013 02:13
Show Gist options
  • Save dbuscombe-usgs/6085525 to your computer and use it in GitHub Desktop.
Save dbuscombe-usgs/6085525 to your computer and use it in GitHub Desktop.
Craigslist, alternative plot
iconStr = 'http://maps.google.com/mapfiles/kml/pal2/icon10.png';
kmlStr=cell(1,length(maps));
for i=1:length(maps)
kmlStr{i} = ge_point_new(lon(i),lat(i),0,...
'iconURL',iconStr,...
'iconColor','FF0080FF',...
'description',maps{i},...
'name',['$',num2str(prices(i))]);
end
tmp=[];
for i=1:length(maps)
tmp=[tmp,eval(['kmlStr{',num2str(i),'}'])];
end
ge_output('points.kml',...
ge_folder('points',tmp));
system(['google-earth "',pwd,filesep,'points.kml" &'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment