POST
|
I am trying to edit a modified date field in an javascript application. The idea is that when the user is done making their edits that the On the 'before-apply-edits' event is called where the application could insert today's date. when i insert the date and refresh the layer the date is changed to 1 day before. am i missing something?
... View more
04-25-2017
07:39 AM
|
0
|
1
|
594
|
POST
|
im not i actually, use a dojo drag and drop process to accomplish the reorder of layers. For this though i am trying to allow the user to change the symbology of the layer in the map
... View more
08-21-2013
08:22 AM
|
0
|
0
|
679
|
POST
|
A couple of reasons come to mind as to why one would want to know the geometry type. Since you can enable reordering 'layers' in services, suppose you wanted to move all of the points to the top and polygons to the bottom. Also it'd be helpful, in my case to know the goemetry type for changing symbology. in the research that i've done it looks like this is the only option
... View more
08-21-2013
07:53 AM
|
0
|
0
|
679
|
POST
|
thanks i thought of that. It seems like the geometry type would/should be part of the layerInfos property.
... View more
08-20-2013
07:00 AM
|
1
|
0
|
679
|
POST
|
Is there a way to get the geometry type of the individual layers, other than below, in an ArcGISDynamicMapServiceLayer? I am using The javascript api 3.6 and server 10.1. [INDENT]var handle = esri.request({ url: layer.url + "/" + id + "?f=pjson", callbackParamName: 'callback', handleAs: 'json', load: dojo.hitch(this, gotTheInfo) });[/INDENT]
... View more
08-16-2013
12:16 PM
|
0
|
7
|
1335
|
POST
|
is there a but with the getContent method on the Identify Resutls in javascript version 2.2. using this tag... <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.2"></script> and then calling ... function addToMap(idResults, evt) { Results = { displayFieldName: null, features: [] }; // parcelResults = { displayFieldName: null, features: [] }; var tc = new dijit.layout.TabContainer({ style: "height: 100%; width: 100%;" }); try { for (var i = 0, il = idResults.length; i < il; i++) { var idResult = idResults; if (idResult.layerId === 11) { if (!Results.displayFieldName) { Results.displayFieldName = idResult.displayFieldName }; Results.features.push(idResult.feature); //Results.features.getContent() //*************content is nulll at this point var content = Results.features.getContent(); PID = Results.features.attributes['Parcel ID #']; saleTab = new dijit.layout.ContentPane({ title: "PID: " + PID, content: content }); tc.addChild(saleTab); } } } catch (Error) { } tc.startup(); map.infoWindow.setTitle("Identify Results"); map.infoWindow.width = 600; map.infoWindow.setContent(tc.domNode); // map.infoWindow.setContent(dijit.byId("tabs").domNode); // map.infoWindow.resize(315, 315); //map.infoWindow.setTitle(idResults.displayFieldName); showInfo(evt); //map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint)); } guess its back to version 2.1
... View more
03-18-2011
11:25 AM
|
0
|
1
|
853
|
POST
|
never mind. just called the method on each map.graphics.add(graphic);
... View more
03-18-2011
08:40 AM
|
0
|
0
|
125
|
POST
|
I am trying to add a listener to the Add and Clear event of map.graphics on init. I am using the Javascript API. What i want to do ultimately is when graphics are added to a map i want a button to be active or inactive. does anyone know what i am doing wrong? dojo.connect(map.graphics, "onGraphicsClear", function removeGraphic(geometry) { getbutton("true"); }); dojo.connect(map.graphics, "onGraphicsAdd", function removeGraphic(geometry) { getbutton("false"); });
... View more
03-17-2011
05:17 AM
|
0
|
1
|
562
|
Title | Kudos | Posted |
---|---|---|
1 | 08-20-2013 07:00 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|