POST
|
How to find latitude and longitude coordinates of distance like 1 km from the starting point on the given road line data?
... View more
12-28-2019
01:33 AM
|
0
|
0
|
306
|
POST
|
we want to find distance like 1 km from the starting point of the given road line data and after 1 km we want to know the latitude and longitude coordinates on the particular location. please suggest me how to do this.... Esri India My Esri Workforce for ArcGIS GIS Programming esri api user
... View more
12-27-2019
01:54 AM
|
0
|
0
|
600
|
POST
|
I am using arc gis api for java script 3.16. We are facing issues for showing dynamically category wise legend. i have Draw categories using unique values of one field in symbology of layer property arc map 10.3.1 and than publish this .mxd file as a map service and this service use in my program and i want to show only those legend category symbol which are exist on map but my map show legend according to layer wise if layer is on legend show properly but i am showing only those symbol which value are exist on map not all. i am using this code for showing legend. var legend = new Legend({ map : map, layerInfos : [ { layer : layer, title : "Legend" } ] }, "legend"); legend.startup();
... View more
08-13-2018
01:01 AM
|
0
|
2
|
695
|
POST
|
Thanks but how to store this point in spacial table SQL database and publish as a map service layer using arcmap(10.3.1). actually i want to perform identify task on this points
... View more
02-12-2018
11:30 PM
|
0
|
1
|
1187
|
POST
|
I am using arc gis api for java script and i want to create a map point using latitude longitude of the location from the Sql table. is there any utility to convert latitude longitude to map point. can anyone suggest me which method i use to solve this problem
... View more
02-12-2018
01:42 AM
|
0
|
3
|
2258
|
POST
|
We are facing issues with printtask() method of ArgGIS API 3.16 for JavaScript while using secure services. Our services are published in ArcGIS Server 10.3.1(Advance) and secured with Long-lived token. The application has proxy.jsp file which is used for supplying Long-lived tokens. Services are inaccessible in this case and error comes as “Unable to complete operation”. The application works smoothly by removing the token from services. This issue still needs to resolve. We tried other solution for printing maps using GPServer tool We created custom tool "Export web Map" from printing option under Server Tool and published GPServer tool at our ArcGIS server 10.3.1(Advance). We called the printtask() method of ArgGIS API 3.16 for Javascript on the "Print" button of the application and referred GPServer tool service. It did not give the print of map in PDF format. Screenshots and related files are also attached here for the identification of actual problem.
... View more
01-22-2018
03:30 AM
|
0
|
1
|
1029
|
POST
|
No it is coming from SQL Server and i want that whenever insert new entry in the table point generate automatically(dynamically).
... View more
01-18-2018
10:15 PM
|
0
|
1
|
790
|
POST
|
we are facing issue to create point features using lat/long coordinates. we have a SQL server attribute table which stored the lat/long coordinates and we want to create point features on fly. can any one suggest how to do this.
... View more
01-18-2018
01:41 AM
|
0
|
3
|
1103
|
POST
|
We are facing issues with printtask() method of ArgGIS in JavaScript while using secure services. Our services are secured with Long-lived token. The application has proxy.jsp file which is used for supplying Long-lived tokens. Services are inaccessible in this case and error comes as “Unable to complete operation”. The application works smoothly by removing the token from services. We need solution so that printtask() method of ArgGIS will work with token also.
... View more
01-07-2018
11:19 PM
|
0
|
3
|
1026
|
POST
|
Hello, I want to customize Direction widget can any one suggests me how to customize Direction widget Like this... ArcGIS API for JavaScript Sandbox
... View more
04-19-2017
11:09 PM
|
0
|
3
|
699
|
POST
|
Actually i want to driving direction between two stop point using network analysis arc gis api for javascript. like this
... View more
04-19-2017
11:04 PM
|
0
|
0
|
686
|
POST
|
Hello, i m new in network analysis and I want to driving direction in this example can any one tell me how to get driving direction using this example. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Multiple Routes</title> <link rel="stylesheet" href="https://js.arcgis.com/3.20/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.20/esri/css/esri.css"> <script src="https://js.arcgis.com/3.20/"></script> <script> require([ "esri/urlUtils", "esri/config", "esri/map", "esri/graphic", "esri/tasks/RouteTask", "esri/tasks/RouteParameters", "esri/tasks/FeatureSet", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/Color", "dojo/_base/array", "dojo/on", "dojo/dom", "dijit/registry", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/form/HorizontalSlider", "dijit/form/HorizontalRuleLabels" ], function ( urlUtils, esriConfig, Map, Graphic, RouteTask, RouteParameters, FeatureSet, SimpleMarkerSymbol, SimpleLineSymbol, Color, array, on, dom, registry ) { var map, routeTask, routeParams, routes = []; var stopSymbol, barrierSymbol, routeSymbols; var mapOnClick_addStops_connect, mapOnClick_addBarriers_connect; urlUtils.addProxyRule({ urlPrefix: "route.arcgis.com", proxyUrl: "/sproxy/" }); map = new Map("map", { basemap: "streets", center: [-122.416, 37.802], zoom: 15 }); routeTask = new RouteTask("https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"); routeParams = new RouteParameters(); routeParams.stops = new FeatureSet(); routeParams.barriers = new FeatureSet(); routeParams.outSpatialReference = {"wkid":102100}; routeTask.on("solve-complete", showRoute); routeTask.on("error", errorHandler); stopSymbol = new SimpleMarkerSymbol().setStyle(SimpleMarkerSymbol.STYLE_CROSS).setSize(15); stopSymbol.outline.setWidth(3); barrierSymbol = new SimpleMarkerSymbol().setStyle(SimpleMarkerSymbol.STYLE_X).setSize(10); barrierSymbol.outline.setWidth(3).setColor(new Color([255,0,0])); routeSymbols = { "Route 1": new SimpleLineSymbol().setColor(new Color([0,0,255,0.5])).setWidth(5), "Route 2": new SimpleLineSymbol().setColor(new Color([0,255,0,0.5])).setWidth(5), "Route 3": new SimpleLineSymbol().setColor(new Color([255,0,255,0.5])).setWidth(5) }; //button click event listeners can't be added directly in HTML when the code is wrapped in an AMD callback on(dom.byId("addStopsBtn"), "click", addStops); on(dom.byId("clearStopsBtn"), "click", clearStops); on(dom.byId("addBarriersBtn"), "click", addBarriers); on(dom.byId("clearBarriersBtn"), "click", clearBarriers); on(dom.byId("solveRoutesBtn"), "click", solveRoute); on(dom.byId("clearRoutesBtn"), "click", clearRoutes); //Begins listening for click events to add stops function addStops() { removeEventHandlers(); mapOnClick_addStops_connect = map.on("click", addStop); } //Clears all stops function clearStops() { removeEventHandlers(); for (var i=routeParams.stops.features.length-1; i>=0; i--) { map.graphics.remove(routeParams.stops.features.splice(i, 1)[0]); } } //Adds a stop. The stop is associated with the route currently displayed in the dropdown function addStop(evt) { routeParams.stops.features.push( map.graphics.add( new esri.Graphic( evt.mapPoint, stopSymbol, { RouteName:dom.byId("routeName").value } ) ) ); } //Begins listening for click events to add barriers function addBarriers() { removeEventHandlers(); mapOnClick_addBarriers_connect = on(map, "click", addBarrier); } //Clears all barriers function clearBarriers() { removeEventHandlers(); for (var i=routeParams.barriers.features.length-1; i>=0; i--) { map.graphics.remove(routeParams.barriers.features.splice(i, 1)[0]); } } //Adds a barrier function addBarrier(evt) { routeParams.barriers.features.push( map.graphics.add( new esri.Graphic( evt.mapPoint, barrierSymbol ) ) ); } //Stops listening for click events to add barriers and stops (if they've already been wired) function removeEventHandlers() { if (mapOnClick_addStops_connect) { mapOnClick_addStops_connect.remove(); } if (mapOnClick_addBarriers_connect) { mapOnClick_addBarriers_connect.remove(); } } //Solves the routes. Any errors will trigger the errorHandler function. function solveRoute() { removeEventHandlers(); routeTask.solve(routeParams); } //Clears all routes function clearRoutes() { for (var i=routes.length-1; i>=0; i--) { map.graphics.remove(routes.splice(i, 1)[0]); } routes = []; } //Draws the resulting routes on the map function showRoute(evt) { clearRoutes(); array.forEach(evt.result.routeResults, function(routeResult, i) { routes.push( map.graphics.add( routeResult.route.setSymbol(routeSymbols[routeResult.routeName]) ) ); }); var msgs = ["Server messages:"]; array.forEach(evt.result.messages, function(message) { msgs.push(message.type + " : " + message.description); }); if (msgs.length > 1) { alert(msgs.join("\n - ")); } } //Reports any errors that occurred during the solve function errorHandler(err) { alert("An error occured\n" + err.message + "\n" + err.details.join("\n")); } }); </script> </head> <body class="claro"> Select route name: <select id="routeName"> <option value="Route 1">Route 1</option> <option value="Route 2">Route 2</option> <option value="Route 3">Route 3</option> </select> to <button id="addStopsBtn">Add Stops</button> <button id="clearStopsBtn">Clear Stops</button> <button id="addBarriersBtn">Add Barriers</button> <button id="clearBarriersBtn">Clear Barriers</button> <button id="solveRoutesBtn">Solve Routes</button> <button id="clearRoutesBtn">Clear Routes</button> <br /><br /> <div id="map" style="width:600px; height:400px; border:1px solid #000;"></div> <ol> <li>Select a route name from the drop down.</li> <li>Click 'Add stops', then click on map to add stops to route.</li> <li>Click the 'Add Barriers', then click on map to add barriers.</li> <li>Optionally, repeat the above steps to add more routes.</li> <li>Click the 'Solve Routes' to solve.</li> </ul> <p>Any server error messages will be displayed in an alert box.</p> </body> </html>
... View more
04-19-2017
05:06 AM
|
0
|
2
|
1289
|
POST
|
Problem to set Graphics Extent using Print Service. when i export pdf map not show properly. I am trying to zoom to the extent of a query I have. I am having a problem when I call esri.graphicsUtils.graphicsExtent(featuresset) to get the extent. It is returning NaN. Please suggest how to zoom map. My Javascript Code: queryTask.execute(query ,showResults); function showResults(featureSet) { var myFeature = graphicsUtils .graphicsExtent(featureSet.features); app.map.setExtent(myFeature, true); }
... View more
10-18-2016
04:07 AM
|
0
|
0
|
1251
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|