Select to view content in your preferred language

Problem using URL parmeters to center a web app.

3624
6
06-26-2015 09:20 AM
TracyArchibald
Regular Contributor

I am trying to do what is here:

Use URL parameters—Web AppBuilder for ArcGIS | ArcGIS

I'm using the option to project the coordinates, but it doesn't seem to work properly.  It loads up a blank screen.  If I use the lat/long (rather than project), it will work.  But that's not readily available to me where the link into the app is being created.

Here's some examples of the parameters I'm passing:

center=343316.49011253,6099793.62779277,26911&level=16

center=385157.65042952,6105028.26743251,26911&level=16

Is there something wrong with how I've created my URL? or is there a bug somewhere? maybe this one? Bug BUG-000088317

Thanks!

0 Kudos
6 Replies
XanderBakker
Esri Esteemed Contributor

If I take your coordinate and apply them to a Web App provided in the Help, but apply a lower view level (4 in stead of 16) it becomes clear what is happening: ArcGIS Web Application

Change the basemap to oceans and you will see that the point is located somewhere in the Atlantic Ocean...

Are you sure that is the correct spatial reference (wkid) you are providing in the URL?

TracyArchibald
Regular Contributor

I was afraid you might say that...

I am pretty sure it's correct.  I pulled it from the service.  (The actual data I'm using is secured, but this service is the same spatial reference)

Share/Boundaries (MapServer)

Is there somewhere else I need to get it?

0 Kudos
XanderBakker
Esri Esteemed Contributor

This spatial reference requires a transformation to get it on the right location. Not sure if and how this is implemented as parameter in the URL...

0 Kudos
XanderBakker
Esri Esteemed Contributor

I loaded your service to a webmap, and configured the coordinate system using the coordinate widget (including a transformation), hoping this would solve the problem when specifying the URL, but it didn't.

Also tried to provide a fourth part (transformation number) to the center parameter of the URL, which change the location it centers at, but it does not seem to work.

I can only conclude that it is not implemented yet. Might be worth to request this enhancement or post it as idea:

Esri Arcgis Ideas | Ideas Submission Portal

0 Kudos
TracyArchibald
Regular Contributor

The only reason I'm trying this is the documentation says it works.

Use URL parameters—Web AppBuilder for ArcGIS | ArcGIS

Which means that there must be a bug.    Hopefully it wont' take long to get fixed, I could REALLY use this...

(If any ESRI people are lurking, an ETA would be great)

0 Kudos
Jianxia
Esri Regular Contributor

Tracy,

This is a known issue. We will document it in July update and address it in September/October release.

Thanks,

Jianxia