Skip to content

Qwant/mapbox-gl-js-mock

 
 

Repository files navigation

mapbox-gl-js-mock

CircleCI

A maybe-some-day-fully-featured mock for mapbox-gl-js

Work on this is on a need come basis. As we find ourselves writing tests for Mapbox Studio and mapbox maintained mapbox-gl extensions we make this better. If you have a feature in mapbox-gl-js that you want supported here, please feel free to create an issue or open a PR.

Fork by Qwant research

To feet ours need we have made some changes to the mock library :

  • replace evented by a simple event mock with a prepare method
  • insert a clicable mapbox marker
  • bind the map instance to window global as window.MAP_MOCK

We have also added some missing properties and methods

  • flyTo method
  • transform object (basic)

About

A mock for mapbox-gl-js used by Qwant Maps tests

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%