File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
main/groovy/geoscript/layer
test/groovy/geoscript/layer Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ class OSM extends ImageTileLayer {
176
176
" http://otile3.mqcdn.com/tiles/1.0.0/sat" ,
177
177
" http://otile4.mqcdn.com/tiles/1.0.0/sat"
178
178
])
179
+ } else if (name. equalsIgnoreCase(" wikimedia" )) {
180
+ new OSM(" WikiMedia" , [" https://maps.wikimedia.org/osm-intl" ])
179
181
} else if (name. equalsIgnoreCase(" osm" )) {
180
182
new OSM()
181
183
} else {
@@ -230,4 +232,5 @@ class OSM extends ImageTileLayer {
230
232
null
231
233
}
232
234
}
235
+
233
236
}
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ class OSMTestCase {
38
38
assertEquals " MapQuest Street" , osm. name
39
39
osm = OSM . getWellKnownOSM(" mapquest-satellite" )
40
40
assertEquals " MapQuest Satellite" , osm. name
41
+ osm = OSM . getWellKnownOSM(" wikimedia" )
42
+ assertEquals " WikiMedia" , osm. name
41
43
assertNull OSM . getWellKnownOSM(" N/A" )
42
44
assertNull OSM . getWellKnownOSM(" " )
43
45
assertNull OSM . getWellKnownOSM(null )
You can’t perform that action at this time.
0 commit comments