|
12 | 12 | "description": "Add a new layer to the map using a portal item id. Contains a placeholder for the portal item id. AMD path: esri/layers/Layer | ESM path: @arcgis/core/layers/Layer.js",
|
13 | 13 | "prefix": "addLayerFromPortalItem"
|
14 | 14 | },
|
| 15 | + "Add a Circle Geometry": { |
| 16 | + "body": [ |
| 17 | + "new Circle({", |
| 18 | + "\tcenter: [-113, 36],", |
| 19 | + "\tgeodesic: true,", |
| 20 | + "\tnumberOfPoints: 100,", |
| 21 | + "\tradius: 100,", |
| 22 | + "\tradiusUnit: \"kilometers\"", |
| 23 | + "});" |
| 24 | + ], |
| 25 | + "description": "A circle is a Polygon created by specifying a center point and a radius. The point can be provided as a Point object or an array of latitude/longitude values.", |
| 26 | + "prefix": "CircleGeometry" |
| 27 | + }, |
| 28 | + "Add a Extent Geometry": { |
| 29 | + "body": [ |
| 30 | + "new Extent({", |
| 31 | + "\tmmin: -462,", |
| 32 | + "\tmmax: 130,", |
| 33 | + "\txmin: -462,", |
| 34 | + "\txmax: 130", |
| 35 | + "});" |
| 36 | + ], |
| 37 | + "description": "Extent is used to describe the visible portion of a MapView.", |
| 38 | + "prefix": "ExtentGeometry" |
| 39 | + }, |
| 40 | + "Add a Mesh Geometry": { |
| 41 | + "body": [ |
| 42 | + "new Mesh({", |
| 43 | + "\tvertexAttributes: vertexAttributes,", |
| 44 | + "\thasZ: false,", |
| 45 | + "\thasM: true,", |
| 46 | + "});" |
| 47 | + ], |
| 48 | + "description": "A mesh is a general, client-side 3D geometry type composed of vertices with attributes. The mesh geometry class has a number of convenience functions to create simple primitive shapes. Mesh geometries can be manually created by specifying vertexAttributes and components.", |
| 49 | + "prefix": "MeshGeometry" |
| 50 | + }, |
| 51 | + "Add a Multipoint Geometry": { |
| 52 | + "body": [ |
| 53 | + "new Multipoint(", |
| 54 | + "\tnew SpatialReference(", |
| 55 | + "\t\t{ wkid:4326 })", |
| 56 | + ");" |
| 57 | + ], |
| 58 | + "description": "An ordered collection of points.", |
| 59 | + "prefix": "MultipointGeometry" |
| 60 | + }, |
| 61 | + "Add a Point Geometry": { |
| 62 | + "body": [ |
| 63 | + "new Point({", |
| 64 | + "\tx: -107.875,", |
| 65 | + "\ty: 37.875,", |
| 66 | + "\tz: 0,", |
| 67 | + "\tspatialReference", |
| 68 | + "});" |
| 69 | + ], |
| 70 | + "description": "A location defined by X, Y, and Z coordinates.", |
| 71 | + "prefix": "PointGeometry" |
| 72 | + }, |
| 73 | + "Add a Polyline Geometry": { |
| 74 | + "body": [ |
| 75 | + "new Polyline({", |
| 76 | + "\thasZ: false,", |
| 77 | + "\thasM: true,", |
| 78 | + "\tpaths: paths,", |
| 79 | + "\tspatialReference: { wkid: 4326 }", |
| 80 | + "});" |
| 81 | + ], |
| 82 | + "description": "A polyline contains an array of paths and spatialReference. Each path is represented as an array of points.", |
| 83 | + "prefix": "PolylineGeometry" |
| 84 | + }, |
| 85 | + "Add a Polygon Geometry": { |
| 86 | + "body": [ |
| 87 | + "new Polygon({", |
| 88 | + "\thasZ: true,", |
| 89 | + "\thasM: true,", |
| 90 | + "\trings: rings,", |
| 91 | + "\tspatialReference: { wkid: 4326 }", |
| 92 | + "});" |
| 93 | + ], |
| 94 | + "description": "A polygon contains an array of rings and a spatialReference. Each ring is represented as an array of points. The first and last points of a ring must be the same.", |
| 95 | + "prefix": "PolygonGeometry" |
| 96 | + }, |
| 97 | + "Add a SpatialReference Geometry": { |
| 98 | + "body": [ |
| 99 | + "new SpatialReference({", |
| 100 | + "\twkid: 4326,", |
| 101 | + "\tunit: \"150-kilometers\"", |
| 102 | + "});" |
| 103 | + ], |
| 104 | + "description": "Defines the spatial reference of a view, layer, or method parameters.", |
| 105 | + "prefix": "SpatialReferenceGeometry" |
| 106 | + }, |
15 | 107 | "Add a Search Widget": {
|
16 | 108 | "body": [
|
17 | 109 | "new Search({",
|
|
0 commit comments