[GIS] Is it possible to access the Bing Maps “dark” mode in the ArcGIS JS API

arcgis-javascript-apibing-mapsstamen

Stamen Designs have made a beautiful Hurricane Tracker application which uses a "dark" mode of the Bing Maps backdrop.

enter image description here

This is perfect for directing people's attention to the overlay rather than the background.

Is it possible to access this "dark" version of Bing Maps within the ArcGIS Server JS API?

Best Answer

I don't know the ins-and-outs of the ArcGIS JS API but I can tell you that the MSNBC Hurricane Map uses Flash's ColorMatrixFilter and ColorTransform to invert and desaturate the Bing tiles on the fly.

I'm pretty sure that's not possible with JS in a cross-browser way. You might have some success if the Bing tiles are served with cross-domain (CORS) permissions and if the ArcGIS API allows you to render tiles using the HTML canvas element. Or perhaps you could proxy the tiles and modify them server-side, but you'd have to check the Bing terms before doing that, of course.