Skip to content

WSDOT-GIS/arcgis-map-thumbnail-builder

Repository files navigation

ArcGIS Map thumbnail builder

Exports an image of an ArcGIS API for JavaScript map.

Demo

http://wsdot-gis.github.io/arcgis-map-thumbnail-builder/

Query string parameters

webmap

You can initialize the map with a web map using the web map parameter.

http://example.com/arcgis-map-thumbnail-builder/?webmap=yourwebmapid

Modules

map-to-canvas

Exports the contents of an esri/Map to an HTML Canvas element.

Note that the dojoConfig.gfxRenderer option must be set to "canvas" in order for graphics layers to be exported.

var dojoConfig = {
	gfxRenderer: "canvas"
}

layerFactory

Allows many types of map layers to be generated from a URL without knowing ahead of time what layer type will be needed.

This module was copied from its own repository. It was copied instead of using a git submodule so that the site would work as a GitHub Project Page.