POST
|
Hi, I'm using ArcGIS API for JS. I'm able to create a grid of 1ft X 1ft. Now, whenever I'm able to add another polygon it should touch the grid and no one can start drawing in the middle of the grid, it has to be from corners based on grid size. Try to use snapping but not able to start the middle of the grid. Any idea or help will be more appreciated. Thanks, Sai
... View more
Wednesday
|
0
|
1
|
86
|
POST
|
Hi, I'm able to create a horizontal and vertical line to make a grid on top of a polygon based on xmin, ymin, xmax and ymax but it's coming out of the polygon. How can I make grid restrict with the polygon boundary? Thanks in advance. Please find the code: https://codepen.io/Andy0206/pen/yLrpXjp?editors=1000
... View more
2 weeks ago
|
0
|
1
|
154
|
POST
|
Hi Community, Can anyone help me out create a grid layer of 1ft x 1ft size on top of a polygon or geometry? I tried using the code of create vertical and horizontal line using ArcGIS JS for API. I was checked by passing the coordinated vertical line and horizontal line but how we can do for the polygon geometry area. var polyline1 = new Polyline([[0, 0],[5,0], [10, 0]]); var polyline2 = new Polyline([[0, 0],[0,5], [0, 10]]); Thanks, Sai
... View more
a month ago
|
0
|
0
|
127
|
POST
|
Hi Community, Can anyone help me out create a grid layer of 1ft x 1ft size on top of a polygon or geometry? I tried using the code of create vertical and horizontal line using ArcGIS JS for API. I was checked by passing the coordinated vertical line and horizontal line but how we can do for the polygon geometry area. var polyline1 = new Polyline([[0, 0],[5,0], [10, 0]]); var polyline2 = new Polyline([[0, 0],[0,5], [0, 10]]); Thanks, Sai
... View more
03-06-2024
11:16 AM
|
0
|
0
|
164
|
POST
|
Thanks, @Justin_Greco . I'm able to save the bookmarks and refresh the browser to see the bookmarks but one issue is that it's going to the extent which I was set in the bookmark only it's zoom to that location. Attached the code pen, in the sample i was set chicago as center of bookmark and refresh the app then it's going to scale of chicago but now it's showing Kansas as center. https://codepen.io/SaiAnand-Peketi/pen/OJqErda
... View more
02-05-2024
11:10 PM
|
0
|
1
|
208
|
POST
|
Hi, Could anyone please suggest me for the event to store the bookmarks in the session cookies. I'm able to see in 3.x https://developers.arcgis.com/javascript/3/jssamples/exp_bookmarks_stored_client_side.html. Is anyway to call a function that what it stored the bookmarks, Thanks, Sai
... View more
02-02-2024
12:02 PM
|
0
|
4
|
321
|
POST
|
Hi All, I'm working with Search Widget. In that we can set the multiple search source by passing in the source value. But can we get the multiple value inside a single feature class. For Example, I have a type of "Xyz", "abc", and "pqs". Now, I want to search and people will select the dropdown value of "xyz" and the featurelayer will show only type of "xyz" in suggestion template and need to search. If anyone, did like this can you please share me some snippets code. Like this example "Search multiple sources | ArcGIS API for JavaScript 3.30" Adding multiple sources with different feature layer but if it's a single feature class then how we can achieve it. Like can we apply any query field in the source to restrict only show the particular type? Thanks, Sai Anand Peketi
... View more
10-22-2019
12:24 AM
|
1
|
1
|
906
|
POST
|
Thanks for reply @Bryan McIntosh. I tried to change the recycle interval but not a success.
... View more
08-06-2019
03:32 AM
|
0
|
0
|
1305
|
POST
|
I used sample Print Widget template and set the proxy to login the ArcGIS online Feature service. That's one is loading properly on the map but failed Print Service. var permitUrl = "https://services8.arcgis.com/xxxx/arcgis/rest/services/xxxx/FeatureServer/0"; If I add the token manual then print service is working. Not sure why manual need to set the token for a print widget. Again this only for few layers, not all feature services. var permitUrl = "https://services8.arcgis.com/xxxx/arcgis/rest/services/xxxx/FeatureServer/0?token=xxxxxxxxxxxx"; Snippet code of Print Widget. Let me know, did I make any mistake. <script> var app = {}; require([ "esri/map", "esri/layers/FeatureLayer", "esri/dijit/Print", "esri/tasks/PrintTemplate", "esri/tasks/PrintTask", "esri/request", "esri/config", "dojo/_base/array", "dojo/dom", "dojo/parser", "esri/urlUtils", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!" ], function ( Map, FeatureLayer, Print, PrintTemplate, PrintTask, esriRequest, esriConfig, arrayUtils, dom, parser, urlUtils ) { parser.parse(); app.printUrl = "https://xxxx/arcgis/rest/services/xxx/GPServer/Export%20Web%20Map"; urlUtils.addProxyRule({ urlPrefix: "services8.arcgis.com/xxxx/arcgis/", //Server URL proxyUrl: "proxy.ashx" // Path of Proxy page mine is avaiable on the root folder }); esriConfig.defaults.io.proxyUrl = "proxy.ashx"; app.map = new esri.Map("map", { basemap: "hybrid", center: [-85.797466, 38.120622], zoom: 17, slider: false }); // add graphics for pools with permits var permitUrl = "https://services8.arcgis.com/xxxx/arcgis/rest/services/xxxx/FeatureServer/0"; //var permitUrl = "https://services8.arcgis.com/xxxx/arcgis/rest/services/xxxx/FeatureServer/0?token=xxxxxxxxxxxx"; var poolFeatureLayer = new FeatureLayer(permitUrl); app.map.addLayer(poolFeatureLayer); // get print templates from the export web map task var printInfo = esriRequest({ "url": app.printUrl, "content": { "f": "json" } }); printInfo.then(handlePrintInfo, handleError); function handlePrintInfo(resp) { var layoutTemplate, templateNames, mapOnlyIndex, templates; layoutTemplate = arrayUtils.filter(resp.parameters, function (param, idx) { return param.name === "Layout_Template"; }); if (layoutTemplate.length === 0) { console.log("print service parameters name for templates must be \"Layout_Template\""); return; } templateNames = layoutTemplate[0].choiceList; // remove the MAP_ONLY template then add it to the end of the list of templates mapOnlyIndex = arrayUtils.indexOf(templateNames, "MAP_ONLY"); if (mapOnlyIndex > -1) { var mapOnly = templateNames.splice(mapOnlyIndex, mapOnlyIndex + 1)[0]; templateNames.push(mapOnly); } // create a print template for each choice templates = arrayUtils.map(templateNames, function (ch) { var plate = new PrintTemplate(); plate.layout = plate.label = ch; plate.format = "PDF"; plate.layoutOptions = { "authorText": "Made by: Esri's JS API Team", "copyrightText": "<copyright info here>", "legendLayers": [], "titleText": "Pool Permits", "scalebarUnit": "Miles" }; return plate; }); // create the print dijit app.printer = new Print({ "map": app.map, "templates": templates, url: app.printUrl }, dom.byId("print_button")); app.printer.startup(); } function handleError(err) { console.log("Something broke: ", err); } }); </script> Regards, Sai Anand Peketi
... View more
08-06-2019
03:30 AM
|
0
|
0
|
1305
|
POST
|
Hi Noah Sager, Yes, Layers are hosted in ArcGIS Online. Yes, custom print service is hosted in ArcGIS Server. Increase the token expiration time on ArcGIS Online. My custom print service is not secured. And Shred the Print Service rest endpoint on the ArcGIS Online Content. But, still causing an issue. This behavior is only for a few layers. I tried permutation and combination with layers and check the difference between one was working perfectly fine with my custom print service but some layers are throwing this error. Error executing tool. Export Web Map Task Job ID: jb88972125ace4b6593c8055ee779e920 : Layer "xxxx": Unable to connect to map server at https://xxxxx/arcgis/rest/services/xxxx/MapServer/. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task). Can you let me know how to check the token is being passed correctly or not the web map JSON to print Service? Those ArcGIS online layers are working fine, I can perform query and popup task. But only get failed when trying with Print Service. Regards, Sai Anand Peketi
... View more
08-03-2019
12:06 PM
|
0
|
0
|
1305
|
POST
|
Hi, ArcGIS Server Version: 10.7 (ArcGIS Online) ArcGIS JS API: 3.29 In my web application, I am consuming secured services properly loading the map and have a requirement to print the map contents. Initially, the token expiry was set to default (i.e. 60 mins) and everything worked fine including printing, using the Utilities/PrintingTools GP Service. As part of the requirement, the token expiry was increased from 60 mins to 240 mins - everything still worked fine except for printing! Looking up the Esri help it was clear I had to create a custom service. I created the custom service as described in the help documents, but it still fails with the following error: Error executing tool. Export Web Map Task Job ID: jb88972125ace4b6593c8055ee779e920 : Layer "xxxx": Unable to connect to map server at https://xxxxx/arcgis/rest/services/xxxx/MapServer/. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task). Any suggestion this issue occurs with particular layers on ArcGIS Online? If those layers are turned off then print tool works properly. Regards Sai Anand
... View more
08-02-2019
09:42 AM
|
0
|
5
|
1736
|
Title | Kudos | Posted |
---|---|---|
1 | 10-22-2019 12:24 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|