Select to view content in your preferred language

Click to download a map tile

2676
10
Jump to solution
08-19-2014 06:44 AM
MarkLewin
Deactivated User

Hi,

I'm building an application where users can click on the map to download a map tile. I can see that the ArcGISTiledMapServiceLayer has a getTileUrl() method, but has anyone got any idea about how I can identify a particular tile beneath a user's map click?

The Silverlight API has a TileLoading event, but I can't find anything similar in the ArcGIS Server API for JavaScript. My idea was to attach a click event handler to each tile as it loads, and then use getTileUrl(coords) to locate the required tile.

What would also be great to do is add a feature layer graticule to identify the individual tiles, but I can't figure out a good way to do this.

I would really appreciate any suggestions.

Thanks,

Mark

0 Kudos
10 Replies
MarkLewin
Deactivated User

That's fantastic John! Just what I needed. Thank you very much. And thanks to Tim for his offers of assistance too.

Mark

0 Kudos