|
POST
|
dear readers, using NPM install etc and using Mr. Rene's video, I was able to get Intellisense of ArcGIS API to work in VS Code 1.21.x. It was very useful. Now is getting the same EXPERIENCE with JS not possible? are there any links I could look at? thanks to all. Special thanks to Mr. Rene for taking the time to do you tube videos. regards ravi.
... View more
04-03-2018
02:23 PM
|
0
|
6
|
2849
|
|
POST
|
@Rene Rubalcava, and others, good afternoon. I see that Rene's video 'uses' TS - i just completed reading readng a few pages comparing JS vs its superset TS. I was able to get a sample project going w TS on VS code. I got intellisense. Does ESRI recommend TS for web app builder and the like? thanks Mr. Rene for your nice youtube video. regards ravi.
... View more
04-03-2018
02:09 PM
|
0
|
0
|
1504
|
|
POST
|
dear Readers, buffer parameters help page talks about distances to be sent as an array. BufferParameters | API Reference | ArcGIS API for JavaScript 3.20 Question: 1. what is the purpose of sending an array - does it take more than 1 value - if yes, what is the significance of the other distance measurements. 2. Will it take negative numbers> if yes, do it have a special significance from a buffering perspective - say for a polygon? 3. We have a request from the users to mark a buffer inside the polygon - a farm land and the application of manure has to be 100 feet from the fence line. so the farmer can apply manure for this crops that are far away from fence line by at least 100 ft. 3b. Is it possible to tell the buffer function in the geometry server to do this> thanks and regards ravi,
... View more
04-26-2017
03:23 PM
|
0
|
1
|
1456
|
|
POST
|
Thank you Freddie for taking the time to write up the answer for everyone's benefit. have a nice weekend. regards ravi Kaushika.
... View more
04-14-2017
11:56 AM
|
0
|
0
|
9796
|
|
POST
|
dear Readers, i had followed the examples to call geometry services buffer function and to add the resulting graphic to the map. https://developers.arcgis.com/javascript/3/jssamples/util_buffergraphic.html and https://developers.arcgis.com/javascript/3/jsapi/bufferparameters-amd.html. it worked fine/ Our ArcMap users are used to having an ArcObjects function that specifically lets the users choose as to which side of the feature the buffer area needs to be drawn. for example, for a line feature, the user will have the option to choose whether the buffer should be on: 1. left side of the line, 2. right side of the line, or 3. both sides of the line (default). Similarly, a polygon buffer would let the users choose between 1. include polygon area while computing the buffer or 2. exclude. Are there sample code or any suggestions in this regard? Any help would be appreciated/ regards ravi.
... View more
04-13-2017
03:10 PM
|
0
|
4
|
14573
|
|
POST
|
Robert, thanks - we started with the esri/dijit/geocode. but for some reason, the customers wanted to create an address locator that looked like the ArcObjects / arcmap interface. there are a large number of users of this legacy product being brought to the web and they want to minimize training effort. So all of us are going the extra miles for the javascript UI to behave or feel like arcmap client UI. thanks for the div suggestion - I will work on that. regards ravi.
... View more
03-20-2017
11:10 AM
|
0
|
0
|
1563
|
|
POST
|
Robert, good afternoon. thanks for your suggestions - i have made the function hunt for suggestion only if 3 characters are entered. I was able to get to the server and obtained a bunch of suggestions - now I am trying to find a way to attach those 3 to 4 suggestions to the text box. as always thanks to you for supporting the javascript community members. have a good weekend. regards ravi.
... View more
03-17-2017
03:51 PM
|
0
|
1
|
1563
|
|
POST
|
dear Readers, thanks a lot for taking the time to read my question: https://developers.arcgis.com/javascript/3/jsapi/locator-amd.html#suggestlocations - has a simple example; I have made the changes as below: var params = { text: "addressInput", categoies: ["place", "address"], location: map.extent.getCenter().normalize(), distance: 1000 }; geocodeLocator.suggestLocations(params).then(function (suggestions) { console.log(suggestions); // to start with. }); I have break points in this code (Chrome f12) and it is not hitting them. I am using esri/task/locator. the address search is working fine - a single address search with NOresult storage on a database is working fine. V r using the geocode engine belonging to ESRI. the example url is not indicating it - do I need to capture dojo text entry into the addressInput text box - on. text change? any information will be greatly appreciated. regards ravi.
... View more
03-16-2017
03:52 PM
|
0
|
4
|
2497
|
|
POST
|
dear Readers, thank you for taking the time to read my post. Our REST services are working fine - the general information page has all information that we entered in the Map Document Properties (Pict 01) - When we click the JSON link we found that the JSON structure has pre-determined element names. Is there a way to add new elements to the generated json? Studying the REST services, publish process' Item Description was modified (Pict 03a) as shown in the attached pictures to 'simulate' the paragraphs generated by the REST services page. Even though the REST services pages were made to look with new paragraphs (Pict. 03b), the JSON generated did not capture the 'new' paragraphs (Pict 04) as new elements, but inner content material of pre-determined elements (Pict 05). We want to have Disclaimer and NEST Data Date (Pict 04) as separate elements of JSON instead of it being present in the Description element of JSON. IS there a way to 'modify' the publish process or any other techniques to have the new paragraphs displayed in the REST pages to show up as new elements in the generated JSON. thanks and regards Ravi Kaushika
... View more
03-14-2017
01:08 PM
|
0
|
0
|
1331
|
|
POST
|
thanks Robert for your help. I got that information about "Singe Line Input" from esri help pages. I changed it to singleLine and it worked. regards ravi.
... View more
02-15-2017
02:19 PM
|
0
|
0
|
640
|
|
POST
|
dear Readers, I followed the example mentioned for amd esri/tasks/locator as Locator. var geocodeLocator = new Locator("https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"); I created a function and the code inside the function was the following: findAddress: function (streetAddress, countyFIPS, map) { if (streetAddress.length === 0) { alert('Please enter an address.'); return; } if (countyFIPS.length === 0) { alert('County is needed.'); return; } var searchAddress = { "Single Line Input": streetAddress }; // single element - not an array. var options = { address: searchAddress, outFields: ["Loc_name"]}; geocodeLocator.outSpatialReference = map.spatialReference; geocodeLocator.on("error", function (error) { alert('Error code: [' + error.error.httpCode.toString() + '.] ' + error.error.message); return; }); geocodeLocator.on("address-to-locations-complete", function (addressCandidates) { array.forEach(addressCandidates, function (eachAddressCandidate) { var test = ""; console.log("results:" + results.toString()); }); }); geocodeLocator.addressToLocations(options); } {"spatialReference":{"wkid":102100,"latestWkid":3857},"candidates":[]} getting an empty address candidates - let alone score . lat long... any guidance will be greatly appreciated. regards ravi.
... View more
02-14-2017
03:48 PM
|
0
|
2
|
845
|
|
POST
|
It became evident from ESRI that it is a known issue for 3.18 and is fixed in JS 3.19. we changed our references to 3.19 and it is working fine. thanks to both of you for your promptness. regards ravi.
... View more
02-07-2017
03:34 PM
|
0
|
0
|
1037
|
|
POST
|
Thejus Kambi, good afternoon. thanks for the info. I went back to the code and saw the similarities... dojo.connect(measure, "onMeasureEnd", function (activeTool, geometry) { var unitSelected = ""; unitSelected = document.getElementsByClassName('dijit dijitReset dijitInline esriToggleButton')[0].innerText; // https://developers.arcgis.com/javascript/3/jsapi/units-amd.html //http://geodienste-umwelt.hessen.de/arcgis_js_api/sdk_37/jsapi/geometryservice.html if (geometry.type === "polygon") { var isSelfIntersectingFlag = geometry.isSelfIntersecting(geometry); if (isSelfIntersectingFlag) { alert('Cannot draw self intersecting polygons.'); return; } ..... } it gets called after the user completes the polygon sketch. still it gives a value of true always whether or not it is self intersecting. thanks for your time. Thanks Robert for marking this helpful. regards ravi.
... View more
02-06-2017
01:58 PM
|
0
|
1
|
1037
|
|
POST
|
dear Readers, thank you for taking the time to help me out. We are using esri/dijit/Measure widget in our application - esri JS API 3.18. Our end users are predominantly ArcMap users for many many years and laying out specification for the web UI. We are implementing a measurement feature using esri/dijit/Measurement in the application. this measurement js tool allows users to draw self intersecting polygon and still computes the area. End users dont like the tool computing area for self intersecting polygons even though ArcMap allows measurement tool to draw a self intersecting polygon and computes the area. there is a polygon.isSelfIntersecting flag and it always returns true even for simple triangle. geometry.isSelfIntersecting(geometry); true esri.geometry.polygonSelfIntersecting(geometry); true geometry.isSelfIntersecting() true I was planning to use this flag to raise an alert - looks like I am stuck. thanks for your help. regards ravi.
... View more
02-06-2017
12:38 PM
|
0
|
3
|
1258
|
|
POST
|
Steve, good morning. thanks for your comment. I have made note of it. regards ravi.
... View more
12-07-2016
09:37 AM
|
0
|
0
|
862
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-13-2013 07:52 AM | |
| 1 | 09-10-2013 02:15 PM | |
| 1 | 03-20-2023 06:38 AM | |
| 1 | 05-17-2022 07:41 AM | |
| 1 | 01-04-2021 10:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-10-2025
08:54 PM
|