program define gcmap, sortpreserve version 9.2 syntax /// no vars, works like geocode using /// filename , /// required options LATitude(varname) /// variable containing latitude LONGitude(varname) /// variable containing longitude [ /// optional options replace /// replace using output file zoom(real 10) /// zoom level for map name(varname) /// variable containing name of location centerlat(string) /// latitude to center map on, if not specified mean of latitude centerlong(string) /// longitude to center map on, if not specified mean of longitude NORmark(string) /// normal marker SELmark(string) /// selected marker ] *open file tempname myfile file open `myfile' `using' , write text `replace' *write file write `myfile' /// `" "' _n /// `" "' _n /// `" "' _n /// `" "' _n /// `" "' _n /// `" "' _n /// `" "' _n /// `" "' _n /// `" "' _n /// `" "' _n /// `"
"' _n /// `" "' _n /// `" "' _n file close `myfile' * Link to file local filenm = trim(subinstr(`"`using'"',`"using"',`""',.)) local filenm : list clean local(filenm) display as text `"Open file: "' `"{browse `"`filenm'"'}"' end