Skip to content

Commit bc58506

Browse files
committed
Updated MULTIPOLYGON demo text after Wikipedia source was changed for compliance with OGC standard
Apparently, when I first sourced the demo text from Wikipedia, the demo strings were wrong. They've since been changed. See issue #33.
1 parent 2140de9 commit bc58506

4 files changed

+4
-4
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
leaflet.map.on('load', function () {
193193
if (!this.loaded) {
194194
this.loaded = true;
195-
document.getElementById('wkt').value = 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ((20 35, 45 20, 30 5, 10 10, 10 30, 20 35), (30 20, 20 25, 20 15, 30 20)))';
195+
document.getElementById('wkt').value = 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ((20 35, 10 30, 10 10, 30 5, 45 20, 20 35), (30 20, 20 15, 20 25, 30 20)))';
196196
}
197197
});
198198

sandbox-arcgis.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152

153153
// Set event handlers //////////////////////////////////////////////
154154
dojo.connect(map, 'onLoad', function() {
155-
document.getElementById('wkt').value = 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ((20 35, 45 20, 30 5, 10 10, 10 30, 20 35), (30 20, 20 25, 20 15, 30 20)))';
155+
document.getElementById('wkt').value = 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ((20 35, 10 30, 10 10, 30 5, 45 20, 20 35), (30 20, 20 15, 20 25, 30 20)))';
156156
});
157157

158158
return map;

sandbox-gmaps3.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
if (!this.loaded) {
194194
this.loaded = true;
195195
// NOTE: We start with a MULTIPOLYGON; these aren't easily deconstructed, so we won't set this object to be editable in this example
196-
document.getElementById('wkt').value = 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ((20 35, 45 20, 30 5, 10 10, 10 30, 20 35), (30 20, 20 25, 20 15, 30 20)))';
196+
document.getElementById('wkt').value = 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ((20 35, 10 30, 10 10, 30 5, 45 20, 20 35), (30 20, 20 15, 20 25, 30 20)))';
197197
app.mapIt();
198198
}
199199
});

wicket-gmap3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
} // eo for each vertex
166166

167167
if (j !== 0) { // Reverse the order of coordinates in inner rings
168-
if (config.reverseInnerPolygons == null || config.reverseInnerPolygons) {
168+
if ((config.reverseInnerPolygons == null || config.reverseInnerPolygons) && this.type == 'polygon') {
169169
verts.reverse();
170170
}
171171
}

0 commit comments

Comments
 (0)