You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*XX you can add new options specific to your geography here (or delete XXexampleoption).
13
+
when a user includes options in their maptile command that aren't mentioned
14
+
in the maptile help file, they are passed to this program. *////
15
+
XXexampleoption(string) ///
16
+
]
17
+
18
+
if ("`mergedatabase'"!="") {
19
+
merge 1:m geoid /*XX change geoid to the geographic ID variable, ex: province*/ using `"`geofolder'/geoname_database.dta"', nogen /*XX change "geoname_database.dta" to the name of your shapefile database file*/
20
+
exit
21
+
}
22
+
23
+
if ("`map'"!="") {
24
+
25
+
spmap `var' using `"`geofolder'/geoname_coords.dta"' `map_restriction', id(id) /// /*XX change "geoname_coords.dta" to the name of your shapefile coordinates file*/
26
+
`legopt' ///
27
+
legend(pos(5) size(*1.8)) /// /*XX change the default placement and size of the legend as appropriate for your map*/
28
+
clmethod(custom) ///
29
+
clbreaks(`min' `clbreaks' `max') ///
30
+
fcolor(`mapcolors') ndfcolor(`ndfcolor') ///
31
+
oc(black ...) ndo(black) ///
32
+
os(vthin ...) nds(vthin) ///
33
+
`spopt'
34
+
35
+
* Save graph
36
+
if (`"`savegraph'"'!="") __savegraph_maptile, savegraph(`savegraph') resolution(`resolution') `replace'
0 commit comments