Skip to content

Commit

Permalink
Make Wkt local. Edit arcgis samples to reflect that.
Browse files Browse the repository at this point in the history
  • Loading branch information
cancastilho committed Sep 13, 2021
1 parent 0bb110e commit ed772a8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 1 addition & 3 deletions doc/arcgis3.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<script src="https://js.arcgis.com/3.37/"></script>
<script type="text/javascript">
require([
'wicket/wicket',
'wicket/wicket-arcgis-amd',
'esri/map',
"esri/graphic",
Expand All @@ -28,8 +27,7 @@
'esri/symbols/SimpleLineSymbol',
'esri/symbols/SimpleMarkerSymbol'
], function (
wicket,
wickedArcgis4Amd,
Wkt,
Map,
Graphic,
GraphicsLayer,
Expand Down
4 changes: 1 addition & 3 deletions doc/arcgis4.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
<script src="https://js.arcgis.com/4.20/"></script>
<script type="text/javascript">
require([
'wicket/wicket',
'wicket/wicket-arcgis-amd',
'esri/Map',
"esri/views/MapView",
"esri/Graphic",
"esri/layers/GraphicsLayer",
], function (
wicket,
wickedArcgis4Amd,
Wkt,
Map,
MapView,
Graphic,
Expand Down
8 changes: 6 additions & 2 deletions wicket-arcgis-amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ define([
'esri/geometry/Multipoint',
'esri/geometry/Point',
'esri/geometry/Polygon',
'esri/geometry/Polyline'
'esri/geometry/Polyline',
'./wicket'
], function (
Multipoint,
Point,
Polygon,
Polyline) {
Polyline,
Wkt
) {

if (!Array.prototype.map) {
Array.prototype.map = function (fun /* thisArg? */) {
Expand Down Expand Up @@ -400,4 +403,5 @@ define([

}
};
return Wkt;
});
2 changes: 1 addition & 1 deletion wicket.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}(this, function () {


var beginsWith, endsWith, root;
var beginsWith, endsWith, root, Wkt;

// Establish the root object, window in the browser, or exports on the server
root = this;
Expand Down

0 comments on commit ed772a8

Please sign in to comment.