The app is looking for your arcgis.com content in the wrong location. Looks like we forgot to set a path to point it to www.arcgis.com in the download version of the template. I've attached a zip file of the updated version that should fix this problem.
This is also a problem with the Simple Map Viewer. What code can I change to make this work?
Thanks Kelly! That fixed the problem, but I do not seem to be able to pan with my mouse inside the map when using Firefox. IE and Chrome seem to work fine. can you test this on your end?
Hi David,Just ran a quick test and panning in Firefox (18.0.2) works for me. Kelly
Tested in Firefox (18.0.2 1nd 18.0) and I cannot Pan or Zoom with the mouse. The only way to zoom in is to use the (+ -) located on the side of the map, but i tested on another computer and it works fine. On another note, i am using a downloaded copy of the BasicViewer App and i configured the index.html file to use my local geocoding service. the geocode works fine, but does not zoom into the address location, the map remains at full extent any ideas on how to fix the problem?Thanks,David
I am having the same problem with the Edit Web app template. I just downloaded it today.After finding this forum I tried the basic viewer linked to by Kelly, changed the key and that worked just fine... Is it possible we can get an updated version of the Edit app?
Thank you, Kelly. The web app now loads my test AGOL without errors.However, it says that there are no editable layers. Can you tell me how I can set this to edit? I set up my arcgis.com map to have an editable layer before I downloaded the Edit app.-Daniel
Is your geocode service public? If so can you send the link and the address you were trying to find?
var geocoder = new esri.dijit.Geocoder({ map: map, geocoders: geocoder, theme: "simpleGeocoder", arcgisGeocoder: geocodeOptions }, "webmap-toolbar-right"); geocoder.startup();
Kelly,
I downloaded the geoform code from the link below and I'm getting the following message when trying to run it from one of our web servers. It works fine when I run it from a local machine, but I get this message on the web server. It's as if it's trying to look for the web map on a premise portal, but I want it to look to cms.maps.arcgis for the web map. Which again it works fine locally in my dev environment on my machine, but not on the web server. Also I have the "sharinghost": in the default.js set to "http://cms.maps.arcgis.com".
Thanks for the help.
Troy Proctor
Esri/geoform-template-js · GitHub
Tony,
On production is your app deployed to a location that has apps or home in the path? If so try switching line 179 in template.js from this:
appLocation = location.pathname.indexOf("/apps/");
To this:
appLocation = -1;
If your path contains home you'll also want to comment out the if statement from lines 180-182
Thanks for the quick response!
It was under /apps/.
That got it to look at cms,maps.arcgis.com, but now I'm getting this error.
Thanks,
Troy
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.