POST
|
Yes Robert, I can reverse engineer the stroke-dasharray value using the dev tools.(its a long list though) Just wanted to ask in the forum, to see, if there's a class/property I can tap into , to obtain the same. (Symbology.getSVGProperties())
... View more
10-28-2016
12:07 PM
|
0
|
1
|
611
|
POST
|
I need to display the style vlaues of the SimpleLine symbol in a combobox as svg graphics, so that there's a visual cue for the different styles. Where can I get the corresponding stroke-dasharray values for the line styles like "DOT, LONGDASH" etc. Please advice. <SVG width="100" height="50"> <path d={obj.d} stroke={obj.stroke} stroke-width={obj.width} stroke-opacity="1" stroke-dasharray="1,60" /> </SVG> <SVG width="100" height="50"> <path d={obj1.d} stroke={obj1.stroke} stroke-width={obj1.width} stroke-opacity="1" stroke-dasharray="10.66,4,1.33,4" /> </SVG>
... View more
10-28-2016
11:19 AM
|
0
|
5
|
1022
|
POST
|
Hi Robert - That's good to know. Please see,if this function looks okay for constructing a polygon.I'm getting an error, Cannot read property 'spatialReference' of undefined.should I update the geometry ? Any samples is much appreciated. if(evt.graphic.geometry.type === "extent") { //console.log("evt.graphic",evt.graphic); let tempPoly = this.convertExtentToPolygon(evt.graphic,new SpatialReference({wkid:102100})); console.log(tempPoly.geometry); this.edittoolbar.activate(Edit.MOVE, tempPoly); } convertExtentToPolygon (extent, spatialRef) { const xmin = extent.xmin; const xmax = extent.xmax; const ymin = extent.ymin; const ymax = extent.ymax; const topLeft = new MapPoint(xmin, ymax, spatialRef); const topRight = new MapPoint(xmax, ymax, spatialRef); const bottomRight = new MapPoint(xmax, ymin, spatialRef); const bottomLeft = new MapPoint(xmin, ymin, spatialRef); var rings = new Array(topLeft, topRight, bottomRight, bottomLeft, topLeft); var newPolygon = new Polygon(spatialRef); newPolygon.addRing(rings); return newPolygon; }
... View more
10-17-2016
03:48 PM
|
0
|
1
|
831
|
POST
|
Hi Robert - That makes sense. Yet, I'm still having problems with the scale,move operations . Please advise. (Error Message:[esri.toolbars.Edit::activate] Unable to activate the tool. Check if the tool is valid for the given geometry type.) activeEditToolbars(evt) { if (this.editingEnabled) { this.editingEnabled = false; this.edittoolbar.deactivate(); } else { this.editingEnabled = true; if(evt.graphic.geometry.type === "extent") { this.edittoolbar.activate(Edit.MOVE|Edit.SCALE, evt.graphic); } else { this.edittoolbar.activate(Edit.EDIT_VERTICES|Edit.MOVE, evt.graphic); } } }
... View more
10-11-2016
08:06 AM
|
0
|
5
|
831
|
POST
|
I'm trying to edit an extent graphic using the EditTool and I'm getting the following error. activeEditToolbars(evt) { if (this.editingEnabled) { this.editingEnabled = false; this.edittoolbar.deactivate(); } else { this.editingEnabled = true; this.edittoolbar.activate(Edit.EDIT_VERTICES|Edit.MOVE, evt.graphic); } } Uncaught Error: [esri.toolbars.Edit::activate] Unable to activate the tool. Check if the tool is valid for the given geometry type.
... View more
10-10-2016
03:04 PM
|
0
|
7
|
1733
|
POST
|
We are in the process of migrating our in-house custom application from ARCGIS Flex API - Javascript. I'm facing a strange situation ,wherein the team is proposing, to tweak all the ARCGIS URL configuration in the API (FeatureLayer, MapService etc..) to point to a custom Java webservice layer which would inturn , load all the features in the Java layer rather than in the client side and to have all the configuration to be driven from the oracle database. The thought process is to load the features in the Java layer they would have more control over the security, transaction and thinking about this is mind bending for me. I'm left to wonder, is there any advantages to this architecture. I have pointed out to the use of resource proxy, which does the relaying to the ARCGIS service. Please advise on any pros and cons of this architecture being proposed.
... View more
07-12-2016
11:29 AM
|
0
|
0
|
861
|
POST
|
Hi - I would like the Template Picker to have a Tree View with a check box , that would display the groupings underneath. Please advise, how I can achieve this. Attaching a image to explain, how the view should look like. Attached a sample , that kind of gets the L&F , now I need to add a checkbox that would expand/collapse the grouping.
... View more
05-02-2016
09:06 AM
|
0
|
0
|
1615
|
POST
|
Hi - On similar lines , I would like the Template Picker to have sort of Tree View with a check box , that would display the groupings underneath. Please advise, how I can achieve this.
... View more
04-28-2016
02:12 PM
|
0
|
0
|
737
|
POST
|
I figured the problem, it was the problem with the alpha value. It has to be a value from 0-255, rather we have set the value similar in Flex btwn 0 and 1. Found an example here, which helped set the right symbology json literal for the Graphics object. playground
... View more
02-25-2016
12:16 PM
|
0
|
0
|
382
|
POST
|
Hi All - I'm developing a custom application, where in user loads from standard boundraies (city/neighbourhood ) to get geometry, I execute a query to get results and during the query success, I call show results as seen below which populates the dgrid and outlines the geometry on the map. The grid is getting populated, but I don't the see the geometry being drawn on the map. Please advise what could be the problem. I'm totally lost. Could it be possible the Graphicslayer has to be moved to the top??, given that , there are other layers which is hiding them. (We call the Java middle tier to make the rest call, we don't make REST api calls from the client side) _showResults: function(token, map,bndryType,featureSet) { var layer = map.getLayer("drawLayer"); layer.clear(); var items = array.map(featureSet, function(feature) { var drawByGraphic = new Graphic(feature ); var json = { }; json.bndryName = feature.attributes[token]; json.col1 = feature.attributes['OBJECTID']; json.geometry = feature.geometry; json.bndryType = bndryType; json.isSelected = false; var sfs = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([232,104,80]), 2),new Color([255,255,0,0.25]) ); layer.add(drawByGraphic); return json; }); if(items) { items.sort(this._sortByName); var memStore = new Memory({ data: items, idProperty: 'col1' }); this._bndryGrid.set("collection", memStore); this._bndryGrid.set("selectionMode",'none'); } else this._bndryGrid.set("collection",null); }, In the postcreate method , I init the GraphicLayers as below: this.drawLayer = new GraphicsLayer(layerArgs); this.bndryFillLayer = new GraphicsLayer(layerArgs1); Also, I listen for the map loaded event and add these graphic layers to the map this.map.addLayer(this.drawLayer); this.map.addLayer(this.bndryFillLayer);
... View more
02-22-2016
02:27 PM
|
0
|
2
|
1994
|
POST
|
I have a AMD module, which has a public function, to load a feature layer and when the results return I need to populate a grid. I'm having trouble with scope accessing the grid craeted in a private method. I 'm trying to use this.set and watch on the object change , but calling "this.set" gives me a Type error. Please advise, I'm new to dojo framework. //Constructor function constructor: function (options, srcRefNode) { // results holder this.set("results", []); // watch updates of public properties and update the widget accordingly this.watch("results", this._updateMemoryStore); }, // Update geocoder nodes _updateMemoryStore: function () { var items = this.get("results"); //idProperty must be set manually if value is something other than 'id' var memStore = new Memory({ data: items, idProperty: "ObjectID" }); console.log(memStore); }, onLoadBndry: function() { ... ... queryTask.disableClientCaching = true; queryTask.useAMF = false; queryTask.showBusyCursor = true; queryTask.execute(query,this._showResults); }, _showResults:function(featureSet) { console.log("_showResults"); var items = array.map(featureSet.features, function(feature) { return feature.attributes; }); this.set("results", items); \\TypeError: this.set is not a function },
... View more
01-15-2016
04:57 PM
|
0
|
1
|
2221
|
POST
|
Thanks Robert, it works now. I see that you imported the LayerList and TabContainer in the require function. Why do we need to import the LayerList dijit?
... View more
01-15-2016
10:28 AM
|
0
|
1
|
533
|
POST
|
I'm working on a custom drawbylist widget and I have trouble with loading the map on the center pane. I need my custom widget to go in the left pane and the map in the center, like shown in the example below. I'm following the example below, as my baseline. http://developers.arcgis.com/javascript/samples/ags_MapContainerSplitLeft/ . I have two issue, the tab is not showing up and the map is not in the center. Could you please help .( I'm running on a Tomcat server to load templates and json files)
... View more
01-14-2016
01:58 PM
|
0
|
3
|
2523
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|