POST
|
I used REST service to control on the paid operation and asked ESRI support to submit a bug.
... View more
10-22-2018
10:56 AM
|
0
|
0
|
584
|
POST
|
Hi Travis, Could you find the solution of this? I have the same questions. I do not find a way to pass forStorage: true in locationToAddress for paid world geocode service.
... View more
10-15-2018
08:10 AM
|
0
|
2
|
584
|
POST
|
Is there any example to snap and trace linear features then highlight the segments which have been overlapped on the trace? I tried to use SnappingManager class and Draw Polyline tool but it doesn't work perfectly. e.g. If I trace using polyline drawing tool on linear features (with snapping enabled on the map) and query at feature layer by passing snapped geometry to find out intersected (or overlapped) segment of the polyline feature layer then it doesn't give the result. If the trace is very perfect then I would get the result. Considering that the trace will not be perfect always and there is some tolerance applies. In that case, I tried to use buffer query. Then it ends up in extra highlights of linear feature on the map. See the following code and suggest if there is better way to implement this scenario. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title></title> <link rel="stylesheet" href="http://js.arcgis.com/3.17/dijit/themes/tundra/tundra.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.17/esri/css/esri.css"> <style> html, body { height: 100%; width: 100%; margin: 0; padding: 0; } #map{ margin: 0; padding: 0; } #controls { position: absolute; height: 80px; font-family: arial; bottom: 10px; margin: 5px; padding: 5px; z-index: 40; background: #fff; color: #444; width: 440px; left: 10px; -moz-box-shadow: 0 0 5px #888; -webkit-box-shadow: 0 0 5px #888; box-shadow: 0 0 5px #888; } h3 { margin: 0 0 5px 0; border-bottom: 1px solid #444; } .label { display: inline-block; width: 140px; } </style> <script src="http://js.arcgis.com/3.17/"></script> <script> var app = {}; require([ "dojo/parser", "dojo/promise/all", "dojo/_base/connect", "esri/Color", "dojo/_base/array", "dojo/dom", "esri/config", "esri/map", "esri/geometry/Extent", "esri/symbols/SimpleFillSymbol", "esri/layers/ArcGISDynamicMapServiceLayer", 'esri/tasks/GeometryService', 'esri/tasks/ProjectParameters', "esri/tasks/query", "esri/tasks/QueryTask", "esri/dijit/Popup", 'esri/layers/FeatureLayer', 'esri/dijit/InfoWindow', "dojo/dom-construct", 'esri/graphicsUtils', "dijit/form/Button", 'esri/toolbars/draw', 'esri/symbols/SimpleLineSymbol', 'esri/symbols/SimpleMarkerSymbol', 'esri/SnappingManager', 'esri/layers/GraphicsLayer', 'esri/graphic', 'esri/tasks/BufferParameters', 'esri/geometry/geometryEngine', "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!" ], function( parser, all, connect, Color, arrayUtils, dom, esriConfig, Map, Extent, SimpleFillSymbol, ArcGISDynamicMapServiceLayer, GeometryService, ProjectParameters, Query, QueryTask, Popup, FeatureLayer, InfoWindow, domConstruct, graphicsUtils, Button, Draw, SimpleLineSymbol, SimpleMarkerSymbol, SnappingManager, GraphicsLayer, Graphic, BufferParameters, geometryEngine ) { // create layout dijits parser.parse(); // specify proxy for request with URL lengths > 2k characters esriConfig.defaults.io.proxyUrl = "/proxy/"; var vMap = new Map("map", { basemap: 'gray' }), vMapServiceUrl = "http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer", vDynamicLayer = new ArcGISDynamicMapServiceLayer(vMapServiceUrl, { 'id': 'AGSDynamicMapServiceLayer' }), vDrawToolbar, vMyButton; vMap.addLayer(vDynamicLayer); vMyButton = new Button({ label: "Click me!", onClick: function(){ var vFeatureLayer = new FeatureLayer(vMapServiceUrl + '/1', { outFields: ['*'], opacity: 0, autoGeneralize: false }); vMap.addLayer(vFeatureLayer); vMap.enableSnapping({ snapPointSymbol: new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,new Color([255,0,0]), 1),new Color([0,255,0,0.25])), tolerance: 30, alwaysSnap: true, layerInfos: [{ 'layer': vFeatureLayer }] }); vDrawToolbar = new Draw(vMap); vDrawToolbar.on('draw-complete', drawComplete); vDrawToolbar.activate(Draw.POLYLINE); } }, "progButtonNode").startup(); vMap.on('layer-add-result', function(layer) { if (layer.layer.id == 'AGSDynamicMapServiceLayer') { var vGeometryService = new GeometryService("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer"), vProjectParameters = new ProjectParameters(); vProjectParameters.geometries = [layer.layer.initialExtent]; vProjectParameters.outSR = vMap.spatialReference; vGeometryService.project(vProjectParameters, function (geometry) { vMap.setExtent(geometry[0], true); }); } }); function drawComplete(evt) { addGraphic(evt.geometry, true); //perform buffer search var vGeometryService = new GeometryService("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer"), vBufferParameters = new BufferParameters(); vBufferParameters.distances = [(vMap.extent.getWidth() / vMap.width) * 5]; vBufferParameters.geometries = [evt.geometry]; vBufferParameters.outSpatialReference = vMap.spatialReference; vGeometryService.buffer(vBufferParameters, function(bufferGeometries){ var vQuery = new Query(); vQuery.geometry = bufferGeometries[0]; vQuery.outFields = ['*']; vQuery.returnGeometry = true; vQuery.spatialRelationship = Query.SPATIAL_REL_INTERSECTS; vQuery.where = '1=1'; var vQueryTask = new QueryTask(vMapServiceUrl + '/1'); vQueryTask.execute(vQuery, function(results){ var vFeatures = results.features; for (var i = 0; i < vFeatures.length; i++) { //use geometry engine to intersect the feature geometry var vIntersectedGeometry = geometryEngine.intersect(vFeatures.geometry, bufferGeometries[0]); addGraphic(vIntersectedGeometry); } vDrawToolbar.deactivate(); }); }); function addGraphic(geometry, isSnap) { var vColor = new Color([0,255,197]), vSize = 4; if (isSnap) { vColor = new Color([200,176,23]); vSize = 10; } var vGraphic = new Graphic(geometry, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, vColor, vSize)), vGraphicsLayer; if (vMap.getLayer('measurelayer') == null) { vGraphicsLayer = new GraphicsLayer({ 'id': 'measurelayer' }); } else { vGraphicsLayer = vMap.getLayer('measurelayer'); } vGraphicsLayer.add(vGraphic); vMap.addLayer(vGraphicsLayer); } } }); </script> </head> <body class="tundra"> <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline',gutters:false" style="width: 100%; height: 100%; margin: 0;"> <div id="map" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"> <div id="controls"> <h3>Polyline drawing tool</h3> <div id="results"> <button id="progButtonNode" type="button"></button> </div> </div> </div> </div> </body> </html>
... View more
02-12-2018
12:02 PM
|
0
|
0
|
558
|
POST
|
I get COM exception when I try to create PolylineZM feature for Roads/Highways events. I use ArcObjects SDK for .NET. Is there any example of it?
... View more
08-28-2017
01:43 PM
|
0
|
1
|
380
|
POST
|
Thanks Terry! I will inform about this to our business analyst.
... View more
04-27-2017
06:08 AM
|
0
|
0
|
945
|
POST
|
One of our rail transit customer has requirement to display Track Diagrams, Interlocking Diagrams and Yard Diagrams on the map. How they are created, any ideas? Which ESRI technology is used to create these diagrams and query? Are they just maps? Any sample data or example available preferably with Roads/Highways data model configuration?
... View more
04-24-2017
07:15 AM
|
0
|
2
|
1845
|
POST
|
Hi David, Thanks for the detailed explanation on this. I tested the code you suggested under "Cancel the automated refresh of the credentials" and it worked for my flow!
... View more
01-27-2017
01:38 PM
|
0
|
0
|
1111
|
POST
|
Hi Aaron, Did this approach work for you further? I implemented following way but IdentityManager tries to refresh token periodically. I have an enterprise application where I have 600+ screens. In that only 4-5 gis screens. Whenever I connect secure gis map service from gis screen then: - Generate token from server side and pass it to client side - Initialize credentials and serverInfos in IdentityManager.initialize() method. - Start the task with lesser than shortLivedTokenValidity (available at http://<arcgisserver>/rest/info resource) and re-initialize identity manager with the new token. - This works fine and loads the map. - Once I leave the GIS screen then I need to stop the task that I initiated as it has no use. - At this point there is an issue. IdentityManager is monitoring based for token expiry. Once it's expired then it tries to refresh the token. Since it doesn't find credentials (as password is not passed to client side), it opens up the popup. - Let's say if I destroy the credentials while leaving (using esriId.destroyCredentials()) and revisit the GIS screen then also it opens up the popup because it has been initialized with esri.id. Did you fall in the same situation? How could you resolve it? Wondering if I can destroy esri.id somehow while leaving the GIS screen. Tried to do esri.id = null but no success. Still the popup opens up when I revisit the screen. jeff.pace / khutchins-esristaff / dblanchardesri-ca-esridist - any suggestions? I cannot work with proxy as I need to set credentials for each user.
... View more
01-25-2017
12:28 PM
|
0
|
2
|
5028
|
POST
|
I am working on map screen with secured gis map services. I generate token and initialize IdentityManager to avoid showing signin popup. Once I leave the map screen then I do not want to fire requests to refresh the token. How can I stop refreshing token? If I destroy credentials while leaving the map screen then popup comes up automatically on other screen.
... View more
01-24-2017
08:44 AM
|
0
|
0
|
970
|
POST
|
Hi Juho, Could you find when supportsPerReplicaSync and supportsPerLayerSync will be true or false? How can we change them? I am in same situation of yours for mobile app in disconnect mode.
... View more
08-05-2016
10:54 AM
|
0
|
0
|
723
|
POST
|
Thanks for replying. Actually, I want to modify suggestions before it displays on the screen. I do not have problem with the server. I do get suggestions in suggest-results. But once I get suggestions in this event then I want to fire another query to another database, modify the suggestions and then display them on the screen. But this doesn't seem to be supported by API. Because by the time, I modify the suggestions, they are displayed on the screen.
... View more
06-29-2016
07:23 AM
|
0
|
1
|
502
|
POST
|
I think, Linear Referencing toolbox would only work if you have Esri Roads and Highways desktop and server extension installed. Check Measure to Geometry (Operation) , this will give geometry of the measure you provide. Only thing, you need Roads and Highways extension.
... View more
06-28-2016
11:09 AM
|
0
|
0
|
609
|
POST
|
Yes, I did the same way. I think, browsers need to provide extra parameters speed and direction in emulator. That would be good test with real time scenario. Thanks for your help.
... View more
05-20-2016
10:46 AM
|
0
|
0
|
675
|
POST
|
Hi Kelly, Once I enable tracking with emulated geolocation coordinates then the Location widget finds the position as per input. No issues in that. But how to emulate the scenario of moving? Consider as if I am moving in my car from one location to another location and with tracking enabled. I should see the symbol on map also moving. How can I test this scenario from my desktop?
... View more
05-19-2016
07:47 PM
|
0
|
2
|
675
|
Title | Kudos | Posted |
---|---|---|
1 | 04-26-2023 09:52 AM | |
1 | 05-25-2023 08:47 AM | |
1 | 08-09-2023 06:55 PM | |
1 | 05-23-2023 09:55 AM | |
1 | 03-16-2015 07:01 AM |
Online Status |
Offline
|
Date Last Visited |
10-06-2023
06:21 AM
|