sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
614 B

define([
"dojo/_base/declare",
"./Geometry"
], function(declare, Geometry){
return declare("dojox.geo.openlayers.LineString", Geometry, {
// summary:
// The `dojox.geo.openlayers.LineString` geometry. This geometry holds an array
// of coordinates.
setPoints: function(p){
// summary:
// Sets the points for this geometry.
// p: Object[]
// An array of {x, y} objects
this.coordinates = p;
},
getPoints: function(){
// summary:
// Gets the points of this geometry.
// returns:
// The points of this geometry.
return this.coordinates; // Object[]
}
});
});