|
POST
|
which exact statement? there are four there :). i can't really debug from here without access to your services, but when i load your TRANSLATE sample and look at the script tag in the browser developer tools i'm not seeing the 'ItemFileReadStore' argument alias thats in your actual code. (see attached screenshot). i have a hunch this is because of the three commented out argument aliases directly above it. if that doesn't fix the problem you'll have to step through the working code, interrogating variables along the way and checking the console, to find out exactly where its blowing up.
... View more
10-24-2013
02:25 PM
|
0
|
0
|
2870
|
|
POST
|
even though Dojo doc recommends you upgrade, for the time being, it is still safe to use "dojox/grid/DataGrid". with regard to your second question, there's no harm in writing out a corresponding argument alias for every individual module, but its only really necessary if you plan on leveraging it at least once from within your JavaScript code. since BorderContainer, Content Pane and other similar modules are typically only referenced from HTML (using their new slashes instead of dots), we can safely omit their argument aliases in our require callback as long as we make sure to load them after all modules that actually need one. to keep things straight i like to include a space betweeen the modules that have an argument alias and those that omit one in the list of loaded modules , which you are already doing in your own TRANSLATE sample.
require([
"esri.Map",
"esri/layers/ArcGISDynamicMapServiceLayer",
"dijit/layout/BorderContainer" //no argument alias required
],...
... View more
10-24-2013
01:54 PM
|
0
|
0
|
2870
|
|
POST
|
maybe worth it to try and deminify and dissect our directions widget and try to compare and contrast? i'm fairly sure it relies on the geocoder widget.
... View more
10-24-2013
01:40 PM
|
0
|
0
|
2186
|
|
POST
|
@ben. i just downloaded the .zip, unzipped to C:\inetpub\wwwroot\parcel_viewer\ and opened http://localhost/parcel_viewer/ in the browser and the app opened without error. do you see any errors in the console or network tab of your browser developer tools?
... View more
10-23-2013
08:19 AM
|
0
|
0
|
2169
|
|
POST
|
welcome to the forums! in this situation you want to call either infoWindow or popup.resize(); this will set a new maximum size to accomodate more text. when less text is present, the popup/infoWindow will shrink to fit. try playing around with this sample to get the hang of it. https://developers.arcgis.com/en/javascript/jssamples/map_infowindow.html
... View more
10-23-2013
08:10 AM
|
0
|
0
|
4891
|
|
POST
|
yup. the reverseGeocode operation in SOAP definitely allows you to pass a boolean asking specifically for intersections. Geocode service ReverseGeocode method - ReturnIntersection http://resources.arcgis.com/en/help/soap/10.2/#/ReverseGeocode/01vp000000n6000000/ nice work!
... View more
10-22-2013
09:28 AM
|
0
|
0
|
1008
|
|
POST
|
im a little out of my depth here, but perhaps in your widgets you should be declaring a variable and 'return' it instead of returning your declare statement directly? (ie like driskull does in his AMD home button widget). https://github.com/driskull/arcgis-dijit-home-button-js/blob/master/js/HomeButton.js
... View more
10-22-2013
08:43 AM
|
0
|
0
|
2186
|
|
POST
|
the REST spec for geocode.arcgis.com for reverseGeocoding doesn't seem to include any parameters to specify that you want an intersection as opposed to an interpolated address, so im not sure how you'd accomplish something like that. 'snapping' itself wouldn't be a relevant solution unless you loaded your entire collection of reference data into the application as graphics layers, which would probably be pretty cumbersome.
... View more
10-22-2013
08:29 AM
|
0
|
0
|
1008
|
|
POST
|
@numa. definitely. you just need to write the logic to map the input textboxes to graphic.attributes prior to calling featureLayer.applyEdits(); yufei's question is cross posted here http://gis.stackexchange.com/questions/75012/how-to-set-a-feature-layer-editable-without-editor-widget (and here) http://gis.stackexchange.com/questions/74286/arcgis-javascript-api-update-records-of-a-feature-layer
... View more
10-22-2013
08:02 AM
|
0
|
0
|
1324
|
|
POST
|
you're correct that the order of the modules loaded and argument aliases that refer to those modules need to match exactly. since the callback isn't actually triggered until each and every module has been retrieved successfully, this means that you can declare variables and instantiate objects using the argument aliases afterward in any order you want. glad to hear the information i posted previously was helpful! 🙂
... View more
10-21-2013
08:04 AM
|
0
|
0
|
2870
|
|
POST
|
the AMD module for Query is actually "esri/tasks/query", not "esri/tasks/Query" as per doc here. a lack of calling dojo.ready() in your AMD version is definitely not a problem, check out this blog for more info on translating between the two patterns.. when using on event style instead of dojo.connect, event names like "onSelectionComplete" become "selection-complete", also, when naming the function which will be called when the event is fired, don't use the '()'. check out this article for more info. ie: mainMap.on("onClick", findParcel());
//should be
mainMap.on("click", findParcel); you did just fine translating dojo.map() to array.map() 🙂 those were all my changes and the grid was working, hard to be positive its totally done though, because i couldn't hit your own services.
... View more
10-18-2013
09:20 AM
|
0
|
0
|
2870
|
|
POST
|
sounds like you should just be doing your own check on user provided strings and conditionally pass the url to addProxyRule() if it meets your own criteria (ie. 'http://' and not 'https://'.
... View more
10-17-2013
09:31 AM
|
0
|
0
|
1343
|
|
POST
|
there is no way to askAddProxyRule to apply only to 'HTTP' requests. you should always use the same protocol for all requests from an app across the board.
... View more
10-17-2013
08:48 AM
|
0
|
0
|
1343
|
|
POST
|
i'm a little unclear how you are getting latitude and longitude coordinates from your database to display in the correct location in a projected map without projecting them, but in general, you might consider adding the X and Y values as graphic attributes and displaying the attributes when people click on the popup instead of digging into the geometry. https://developers.arcgis.com/en/javascript/jshelp/inside_graphics.html https://developers.arcgis.com/en/javascript/jssamples/graphics_multiple_layers.html
... View more
10-17-2013
08:44 AM
|
0
|
0
|
2340
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|