Skip to content
GPU-accelerated image viewing with Mapbox GL JS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
LICENSE.md
README.md
gl-image-zoom.js

README.md

gl-image-zoom

Zoom and pan images using Mapbox GL JS. Try it here - https://uw-macrostrat.github.io/gl-image-zoom/example/index.html

Usage

Include the script gl-image-zoom.js, along with the javascript and css of Mapbox GL JS.

glImage(<image src>, options)

image src - a string that specifies a path to an image
options - an object that contains the following properties:

  • container - default gl-image-zoom. The div the image viewer should be initialized into

Example

A working example can be found in the example directory, or by visiting https://uw-macrostrat.github.io/gl-image-zoom/example/index.html

License

MIT

You can’t perform that action at this time.