POST
|
Yes it is not obvious if you can run the code from within an application and reference the opened MXD. The only thing I can say is give it a go. In arcpy you reference the opened MXD with the word CURRENT. That may work? More information can be found here.
... View more
03-14-2016
03:35 AM
|
0
|
0
|
7
|
POST
|
Hi Noah, Thanks for this it was really helpful. It looks as though there are a few inconsistencies at this stage. Most notably, it seems that esriConfig.request.proxyUrl needs to be defined, but left as an empty string. It seems the new API treats protocols differently too - all my URLs started previously with "//" to be protocol agnostic, but the urlPrefix now needs to either define the protocol in full or ignore it altogether (i.e. start with the subdomain / domain / server URL). The code below kind of works for me... it's not actually showing anything on the map yet, but it does seem to download the data successfully. Thanks again! Roland. var map, view; require([ "esri/Map", "esri/views/SceneView", "esri/config", "esri/core/urlUtils", "esri/layers/FeatureLayer", "dojo/domReady!" ], function( Map, SceneView, esriConfig, urlUtils, FeatureLayer ) { esriConfig.request.proxyUrl = ""; urlUtils.addProxyRule({ urlPrefix : "{...}", proxyUrl : "proxy/proxy.php" }); map = new Map({ basemap : "streets" }); view = new SceneView({ container : "viewDiv", map : map }); overlay = new FeatureLayer("//{...}/MapServer/0"); map.add(overlay); });
... View more
08-12-2015
02:38 PM
|
0
|
0
|
7
|
POST
|
Thanks for both tips! I'll investigate and report back...
... View more
01-27-2013
08:13 PM
|
0
|
0
|
3
|
POST
|
An ArcGIS Server 10 layer can include a Renderer in the Drawing Info. e.g. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0 The Flex API's FeatureLayer will use this by default. If you're using a layer that does not have any Drawing Info, then the default symbology is used. You can set a renderer or symbol on the FeatureLayer since these properties are inherited from GraphicsLayer: http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/GraphicsLayer.html So the practical upshot of this is that while I'm mixing 9.3.1 with 10, if I want to use feature layers I need to specify the symbology using code? Presumably dynamic layers can't be queried? Thanks!
... View more
07-29-2010
04:40 PM
|
0
|
0
|
2
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|