Select to view content in your preferred language

Upadting the Basemap Url

1700
4
Jump to solution
02-11-2013 08:53 PM
NigelDsouza
Frequent Contributor
Hi,
I have created an application with a base map and a Map service. I want to know if there through a simple Activity where the user enters a url of a new base map and on a onclick event of a "save " button the base map url gets updated with the new base map.
Also when the user exits and reopens the application the new base map gets loaded until he once again enters a new basemap url.
0 Kudos
1 Solution

Accepted Solutions
JeffBarrette
Esri Regular Contributor
I'm an arcpy.mapping kind of guy, I'll embarrass myself if I try to answer a question on android.

I think there are much better forums for this specific question.  I found:
http://forums.arcgis.com/forums/139-ArcGIS-Runtime-SDK-for-Android

and here is a specific discussion on the topic:
http://forums.arcgis.com/threads/68683-switching-base-map-on-android

Sorry I can't be of further help,
Jeff

View solution in original post

0 Kudos
4 Replies
JeffBarrette
Esri Regular Contributor
You would need to use something like Python add-ins in order to trap a click event.  You will also want to use arcpy.mapping UpdateLayer.  The problem is that you would need to pre-publish layer files for each possible basemap.  In this case, they wouldn't need to type in a URL but rather pick from a list of basemap names.

Jeff
0 Kudos
NigelDsouza
Frequent Contributor
You would need to use something like Python add-ins in order to trap a click event.  You will also want to use arcpy.mapping UpdateLayer.  The problem is that you would need to pre-publish layer files for each possible basemap.  In this case, they wouldn't need to type in a URL but rather pick from a list of basemap names.

Jeff


Hey Jeff,
Really appreciate the reply. I actually forgot to mention that this application is built on the android platform. So is there any way by which i can implement this on android?
Sorry for not specifying the platform.
Regards,
Nigel.
0 Kudos
JeffBarrette
Esri Regular Contributor
I'm an arcpy.mapping kind of guy, I'll embarrass myself if I try to answer a question on android.

I think there are much better forums for this specific question.  I found:
http://forums.arcgis.com/forums/139-ArcGIS-Runtime-SDK-for-Android

and here is a specific discussion on the topic:
http://forums.arcgis.com/threads/68683-switching-base-map-on-android

Sorry I can't be of further help,
Jeff
0 Kudos
NigelDsouza
Frequent Contributor
Hey Jeff,
Your help is most appreciated. Thank you.
Regards,
Nigel.
0 Kudos