Skip to content

Commit 1081ac9

Browse files
committed
Add WikiMedia OSM layer
1 parent 5bca8c1 commit 1081ac9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/groovy/geoscript/layer/OSM.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ class OSM extends ImageTileLayer {
176176
"http://otile3.mqcdn.com/tiles/1.0.0/sat",
177177
"http://otile4.mqcdn.com/tiles/1.0.0/sat"
178178
])
179+
} else if (name.equalsIgnoreCase("wikimedia")) {
180+
new OSM("WikiMedia", ["https://maps.wikimedia.org/osm-intl"])
179181
} else if (name.equalsIgnoreCase("osm")) {
180182
new OSM()
181183
} else {
@@ -230,4 +232,5 @@ class OSM extends ImageTileLayer {
230232
null
231233
}
232234
}
235+
233236
}

src/test/groovy/geoscript/layer/OSMTestCase.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class OSMTestCase {
3838
assertEquals "MapQuest Street", osm.name
3939
osm = OSM.getWellKnownOSM("mapquest-satellite")
4040
assertEquals "MapQuest Satellite", osm.name
41+
osm = OSM.getWellKnownOSM("wikimedia")
42+
assertEquals "WikiMedia", osm.name
4143
assertNull OSM.getWellKnownOSM("N/A")
4244
assertNull OSM.getWellKnownOSM("")
4345
assertNull OSM.getWellKnownOSM(null)

0 commit comments

Comments
 (0)