Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (13 loc) · 856 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 856 Bytes

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)