|
POST
|
According to the API reference, there doesn't seem to be a supported property. I dug in and found the requests in one of the Esri examples: http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest?f=json&text=chu%20Redlands%2C%20CA&location=%… This returns the object with 5 recommendations based upon string "chu". According to this page: Suggest: (ComplexCompleter) There doesn't seem to be a way to do this, unless it's undocumented.
... View more
03-13-2015
07:15 AM
|
0
|
0
|
1662
|
|
POST
|
It's really exciting having the ability to geoprocess client-side! Wanted to give you guys a heads-up - I noticed the legends are now broken with v3.13 when joining JSON data (just reads as "Creating Legend..."): http://developers.arcgis.com/javascript/samples/data_gas_price Do you guys have any fixes/workarounds available? I tried a few different things, but was unsuccessful in finding a resolution. Thank you!
... View more
03-09-2015
02:32 PM
|
0
|
0
|
1072
|
|
POST
|
Not sure if you've had a chance to look at the Esri example - ArcGIS API for JavaScript Sandbox There's an event "dgrid-select" to which you can attach, something like: on(myTable, "dgrid-select", function(evt){ console.log("The dgrid-select event - ", evt); }); In "evt", you can extract data from the selected row, e.g. evt[0].data.Cmn_Name, or maybe a unique identifier. From here, I imagine you can apply a selection using that info, maybe something like: Feature layer with selection | ArcGIS API for JavaScript You could probably put your selection logic in the "dgrid-select" event - not sure if you need to do multiple selections, though. If so, you can probably work something out!
... View more
03-06-2015
02:58 PM
|
0
|
6
|
1242
|
|
POST
|
I wasn't able to find a newer/non-flex video, unfortunately, but the publishing of the template should be the same, I believe. From the JS API, you can interface to the custom print service like you would with the default, except now you may have new elements you can populate from the JS API (say a text field), different positioning of elements, etc.
... View more
03-06-2015
09:52 AM
|
0
|
2
|
1505
|
|
POST
|
I have personal experience setting-up a map to join a service to JSON data. There's also an example for this on ESRI's demo site: Gas price data by state mashup | ArcGIS API for JavaScript The data doesn't come from APIfy in the example... it's using the fallback, which is located here: http://developers.arcgis.com/javascript/samples/data_gas_prices/fallback-gas-price-data.json Just so you are aware, though, if you join your map to JSON data, you can create choropleths, legends, etc., but if you use the print widget and send the legend layer, it doesn't quite work right. I have an open ticket with ESRI for a workaround; there's also a thread: Print Widget and Renderers with Functions
... View more
03-05-2015
11:46 AM
|
1
|
0
|
534
|
|
POST
|
You can create custom print templates - have a look at the following: http://video.esri.com/watch/1058/arcgis-for-server-101-printingtools-service-tutorial This is an old video for Flex, but there is some info on pushing the custom template to the server, which you can call from the JS API. Also, to follow-up with Chris Sergent's post, you can alter the look/feel of the print widget however you'd like using HTML/CSS, as well as tap into the API events: https://developers.arcgis.com/javascript/jsapi/print-amd.html For example, although I cannot give a link to our site, the print feature in our application looks completely custom - we also automatically load the print window after the job completes using the "print-complete" event (so you don't have to click a link to open the job). Hope this helps...
... View more
03-05-2015
11:40 AM
|
0
|
5
|
1505
|
|
POST
|
I'm having a similar problem - we have an application that is joining dynamic JSON data to a map service by a unique ID shared between the JSON dataset and the map service... everything works brilliantly in our application, although we ended-up creating a custom breaks function; however, when we "print" the map using the default template, the LegendLayer passed to the server ends-up overriding the break labels rendering in the application with "override 1", "override 2", etc., like what is seen in Daniel's attachment (exOverride.pdf). The resolution, it seems from John Gravois' previous response, is to ensure the map service contains the field/data... unfortunately, this isn't an option for us. Has anyone had success with a workaround? My initial thought was to create a custom template where we could send an HTML object from the client-side (the object being the legend) - I haven't come across supporting documentation yet to pursue this... we are currently using the default print template. Thanks!
... View more
02-24-2015
11:38 AM
|
0
|
0
|
1676
|
|
POST
|
The MD5 hash should be listed on the download page as well if you want to compare and make sure there was no corruption during the download.
... View more
02-19-2015
10:02 AM
|
0
|
2
|
844
|
|
POST
|
I tend to use IE11 for debugging since it's what our clients mostly use. I like Chrome since you can change JavaScript on-the-fly, but am more familiar with IE11's dev tools, which allow you to pretty-print JS (ctrl+shift+p) - that makes it quite a bit easier to read and debug.
... View more
02-19-2015
09:39 AM
|
0
|
0
|
1647
|
|
POST
|
If you haven't had a chance to debug ClusterLayer.js in your browser, I'd have a look at the "onClick" method... there's a line that should open the info window: this._map.infoWindow.show(e.graphic.geometry); Once you're debugging, try placing a breakpoint on the "show", "hide", and "destroy "methods of the "esri/dijit/Popup" class in init.js to see if there's anything funky going on (possibly hide is getting called somehow?). If you find that hide is getting called, maybe the click is bubbling up to the map... once you're in "hide", if that's the case, try unraveling the call stack to see if that's occurring. If it is bubbling up, I'm guessing it's triggering the hide method, which gets called when you click anywhere on the map (to dismiss the pop-up/points).
... View more
02-17-2015
07:40 AM
|
1
|
2
|
1647
|
|
POST
|
Brandon, I have been looking into writing unit tests of late, though it is still a work in progress. Selenium isn't limited to Python - you can use multiple languages. There's actually a GitHub using Intern + Selenium for ArcGIS (this looks geared towards unit/function testing): DavidSpriggs/intern-tutorial-esri-jsapi · GitHub Intern is a JavaScript test stack... if you're already writing JavaScript map apps, this may be a good choice, too. I know most GIS people are familiar with Python, though. I've worked for an organization that employed Python/Selenium for automated QA - repurposing for load testing is another benefit of writing your test users: How to perform load testing using Selenium WebDriver? - Stack Overflow If you aren't familiar with web crawling/scraping/mining, the basic concept is that you would automate browser actions in your application, like clicking on buttons, submitting forms, navigating, etc. This would be done by writing a test user/script that would interface with your map and follow a predetermined test path. You could write into the script logic to check whether a page loaded, the output was expected, etc., but with Selenium, you can spin-up multiple test users/scripts at the same time, so load can easily be tested on the server (maybe using Perfmon?). Here's a tutorial on Selenium + Python: http://engineering.aweber.com/getting-started-with-ui-automated-tests-using-selenium-python/ Unfortunately, you would need to code your test users - I am not familiar with any of the commercial products that don't require coding, though I know they are pricey.
... View more
02-17-2015
06:50 AM
|
1
|
0
|
1065
|
|
POST
|
Regarding performance testing, if it's front-end JavaScript, have a look at: https://community.compuwareapm.com/community/display/AJAX/Dynatrace+AJAX+Edition+Community+Home It's pretty robust in identifying bottlenecks that a user would experience due to front-end processing. For load testing the server, this can get pricey as I've come to learn. You could always do something really basic like setting-up Perfmon counters on the server and have everyone in your organization follow a targeted test path, then review the logs/graphs after testing. This would establish a baseline benchmark you could compare against successive code iterations. Of course, it would be easy to skew results as getting 10 people to follow a test path exactly is a challenge much less 150, and it's quite an ordeal to take time away from so many individuals. You can get around this by creating your own test users with automated browsing - Selenium + Python would be a good choice.
... View more
02-16-2015
01:54 PM
|
1
|
2
|
1065
|
|
POST
|
On the map that's failing, it looks like you get the 500 error on: http://gis.collincountytx.gov/electionpollingplace/proxy.ashx?http://gis.co.collin.tx.us/arcgis/rest/services/election/ed/FeatureServer/0/query?f=json&where=1%3D1&returnGeometry=true&spatialRel=esriSpatialRelIntersects&outFields=*&outSR=102100 The proxy target link works fine... I think if you had a problem with the serverUrl tag, you would see a 403 error instead of a 500 error. .NET 4.5 should be fine, but you may have some things that are needed in IIS - If you haven't come across this thread yet, there's some info on that in Unable to load proxy Sometimes, firewalls can block the traffic as well. I would also recommend trying to debug your proxy... I'm not sure how your dev environment is set-up, but if you have it open in Visual Studio, you can attach to process, or, you should be able to force it by adding the following line wherever you need it: System.Diagnostics.Debugger.Break(); I had a problem with the proxy back in 2013 and added that line in the ProcessRequest method to discover an issue when proxying https. This was later fixed with v1.0, which is something else you may want to try. If you're not using the latest proxy, you can find it here: Releases · Esri/resource-proxy · GitHub
... View more
02-16-2015
01:05 PM
|
1
|
0
|
1474
|
|
POST
|
Gabi, Something else you may want to try for the "unable to load proxy" error is to set mustMatch="true" to mustMatch="false" temporarily in the proxy.config file (I'm using the IIS/.NET version). If it works after doing that, double-check your serverUrl entries and make sure the server you need to proxy is listed and that it is correct... something like: <serverUrl url="http://mygisserver.com/arcgis/rest/services" matchAll="true"></serverUrl> matchAll indicates that all services at the rest/services root will be allowed. Remember to set mustMatch back to "true" after you're done testing. Also, one last thing to double-check, make sure allowedReferers contains the list of URLs that are allowable as the referrer, e.g. the address of the application that hosts the map, for instance, or another site that can consume the services. You can send multiple URLs as a comma-delimited list, or you can simply set it to "*" if you have too many apps to list and it's safe for anyone to access. Hope this helps!
... View more
02-16-2015
10:57 AM
|
1
|
2
|
1474
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2020 01:25 PM | |
| 1 | 03-20-2019 09:07 AM | |
| 2 | 07-31-2015 07:31 AM | |
| 1 | 09-14-2015 12:14 PM | |
| 1 | 05-12-2015 12:04 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-27-2023
02:30 AM
|