TheBryanMac / arcgis-map-thumbnail-builder

Exports an image of an ArcGIS API for JavaScript map.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Limitations

  • There does not currently seem to be a way for Internet Explorer users to save the image displayed in the canvas, whereas Chrome and Firefox users can either right-click on the canvas or click the link below the canvas to save the image.

    This IE issue may be CORS related. It may be possible to work around it by using a proxy to call remote resources.

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.

About

Exports an image of an ArcGIS API for JavaScript map.

License:The Unlicense


Languages

Language:JavaScript 85.6%Language:HTML 9.2%Language:CSS 5.2%