Adding a pushpin image on the export map image using REST API

3060
3
05-01-2012 01:26 PM
OceanData
New Contributor
Hello, is there a way to add a graphic layer to the base map when calling the REST API:

http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/export?bbox=-20037507...

to pinpoint location of a coordinate on the map

Thank you,
0 Kudos
3 Replies
SrinivasVinnakota
Esri Contributor
You could either create a SOE to add a pushpin to exported image or use one of the web APIs.
1. Create a SOE: If you chose this path then you would add a push pin as a custom graphic element using IMapDescription::CustomGraphics (http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IMapDescription2_Interfa...)
2. Use web APIs: This is the easier way to accomplish adding client side graphic on top of a map service layer. Javascript web API has this nice sample on how to add graphics - http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/graphics_add.html
0 Kudos
OceanData
New Contributor
Thank you svinnakota,  I am still fairly new but I have used the JavaScript API to create map and add layer of graphic objects to it.  I would like to have a static map on the page like: http://i.msdn.microsoft.com/dynimg/IC450833.jpg as in bing resource: http://msdn.microsoft.com/en-us/library/ff701724.aspx and the BlackBerry browsers viewing this page doesn't support much of JavaScript so I will try your first suggestion.  I haven't work with ArcGIS SDK for .NET but I am a .NET developer so I will try that, I was wondering would the server side code be able to render the static image without any JavaScript?  Do I need to contact our ESRI rep to get the SDK or is there a link to download?  Thanks again
0 Kudos
SrinivasVinnakota
Esri Contributor
Can I have more information to correctly guide you on this one - do you have access to that ArcGIS Server that hosts the base map, to deploy the SOE on the base map service? If you are planning on using Esri basemaps, then SOE is not an option for you.

If you would need to use Esri basemap then you would need to consider making a SOAP connection instead of using REST. You would not need any SDK for this approach. http://server.arcgisonline.com/ArcGIS/sdk/soap/
0 Kudos