Select to view content in your preferred language

Need help adding an ArcGIS service to a Bing Base map script

828
3
02-28-2012 07:34 AM
GordonBooth
Deactivated User
I am trying to add the following layer (http://doj...../DOJ_ArcGIS/rest/services/SVOW/MapServer)
to the attached script. The layer has the location for several hundred addresses. 
I've tried using the code from the ArcGIS resource center but can't get it to work.
Any help would be greatly appreciated:)
0 Kudos
3 Replies
derekswingley1
Deactivated User
Services from bing require an API key. This is free and you can get one here:  http://www.bingmapsportal.com/

You need to replace 'your bing key' in the code with your API key from bing.

Also, consider upgrading to the latest version of the API, which is 2.7.
0 Kudos
GordonBooth
Deactivated User
Derek:
Sorry, I should have mentioned that I have a Bing Map key and the script works great as is. I removed the key for this post. I just can't figure out where and how to place the ArcGIS service so it will work.
0 Kudos
derekswingley1
Deactivated User
In your init function, create either a dynamic or tiled map service then add it to your map. I can't tell which you need because either the forum ate your link or you didn't post the actual URL.

Samples:  Add a Tile Map Service Add a Dynamic Map Service.
0 Kudos