spatialagent / directions Goto Github PK
View Code? Open in Web Editor NEWDirections is a configurable template for providing turn by turn directions to features within a layer or a specific destination.
Directions is a configurable template for providing turn by turn directions to features within a layer or a specific destination.
When I select the geolocation button it zooms to my location but does not route. I receive the following error from console. I'm using AGS Portal 10.3 with my own custom geocoder and network. Should it pass an x,y location if unable to geocode?
Error: Cannot perform query. Invalid query parameters. {code: 400, message: "Cannot perform query. Invalid query parameters.", details: Array[1], log: undefined, httpCode: 400…}init.js:192 xinit.js:191 (anonymous function)init.js:76 cinit.js:76 dinit.js:77 b.Deferred.resolve.callbackinit.js:76 cinit.js:76 dinit.js:77 b.Deferred.resolve.callbackinit.js:76 cinit.js:76 dinit.js:77 b.Deferred.resolve.callbackinit.js:76 cinit.js:76 dinit.js:77 b.Deferred.resolve.callbackinit.js:195 (anonymous function)init.js:199 kinit.js:199 minit.js:201 f.resolveinit.js:200 ainit.js:200 kinit.js:199 minit.js:201 f.resolveinit.js:200 ainit.js:200 kinit.js:199 minit.js:201 f.resolveinit.js:200 ainit.js:200 kinit.js:199 minit.js:201 f.resolveinit.js:160 qinit.js:164 f
main.js:782 Cannot perform query. Invalid query parameters.
Would it be possible to add a feature that would prevent the application from automatically routing to the directions to the nearest location when using the locate me button or an address search? The option could perhaps display the list of possible locations instead?
Can you add a sharing option for social media? I am configuring this to show shelters for the public and it would be nice to allow them to share from within the app.
Hi,
I´m having some problems trying to find locations becase the code has a distance restriction ( 5000) not configurable in the template. You can have look ot the suggest here:
http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=bohoyo&f=json&outSR=%7B%22wkid%22%3A102100%7D&outFields=Addr_type%2CMatch_addr%2CStAddr%2CCity**&searchExtent=%7B%22xmin%22%3A-410679.358911867%2C%22ymin%22%3A4927133.632937685%2C%22xmax%22%3A-407908.51663645636%2C%22ymax%22%3A4928526.220046792%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%7D%7D&distance=50000**&location=%7B%22x%22%3A-409728.6733725451%2C%22y%22%3A4927543.287636162%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%7D%7D&maxLocations=6
Could you update this issue please? At least, some advise to the user in the app could be nice.
Thank you
I am unable to have the routing function working. . I had to download the app due since we need the app to display travel distances using miles. (default with the online app is kilometers). after setting up the app on our server I am having problems with routing. I am getting
"Route service description was not reached or recognized. Please check service URL and/or user credentials, if specified."
Error message:
"Unable to load ./proxy.php?http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World?f=json status: 404"
I'm using your Directions app template inside ArcGIS Online and I can't figure out how to configure it to display miles instead of km inside the directions box. Is there a way to fix this without downloading the code and deploying it on our server? I'm hoping it's something simple that I missed. Here's a screenshot:
First off, thanks for creating this.
I created a test environment locally and have been attempting to deploy this app. I set up a template through our organization's AGOL account. I seemed to have gotten though steps up until no. 5 OK. But, using your method of putting the ID in the "webmap" element on line 22 of the default.js file the page would never fully load. So, since I've always heard this ID at the end of the app's URL called the "appid" I pasted it into the "appid" element in this script. Then it worked. Just thought I'd share this.
It would be a very powerful enhancement to make more of the config available through URL parameters, enabling the app to be called from other apps or web sites. A couple of useful capabilities would be to be able to pass in the start location coordinates, as well as a destination feature (layer,field,id) from the webmap.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.