Skip to content

geofac/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

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.4%
  • HTML 8.0%
  • CSS 4.6%