Customising an unsupported code share app for an australian map

2211
2
05-08-2016 06:53 PM
NathanDaniels
New Contributor III

I am customising an app that is provided as-is, as an unsupported code share. The app is based on leaflet and takes a feature service and tiled map layer:

The Living Wage Map: http://storymaps.esri.com/stories/2015/living-wage-map/

Github repo: https://github.com/ssylvia/living-wage-map

When I add the tiled map layer I can pan from the USA to Australia and see the data, however when I add our feature service, the web app fails to load. At one stage the error message in the Chrome Developer tools was suggesting something about a WKID. Do I need to change the WKID of the Feature Service, or do I need to change the WKID of the JavaScript, or is it both that need changing. This is assuming that the WKID is the cause of the feature service not loading in the first place? The map is also locked on the USA and I would like to change that to South Australia. Maybe this will be solved if the we can get the feature service to load correctly. So my question is whether or not the WKID is the likely cause of our feature service failing to load when attempting to use a USA based template for South Australia?

0 Kudos
2 Replies
AdrianWelsh
MVP Honored Contributor

Nathan,

What happens when you load your feature service in a 'regular' web map? Does it show in the right place? Also, what happens when you load this feature service in another custom webmap? You can likely easily do this by playing around in the Sandbox to see if it is loading properly:

ArcGIS API for JavaScript Sandbox

https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=fl_any_projection

0 Kudos
NathanDaniels
New Contributor III

I can confirm that the feature service loads in a ‘regular’ web map. I was also able to load it in the following sandbox:

https://developers.arcgis.com/javascript/latest/sample-code/sandbox/sandbox.html?sample=layers-featurelayer

0 Kudos