JamesLMilner / terra-draw

A library for drawing on maps that supports Mapbox, MapLibre, Google Maps, OpenLayers and Leaflet out the box
https://terradraw.io
MIT License
447 stars 50 forks source link

test: add extra unit test to openlayers.adapter.spec #300

Closed AnneFiger closed 1 month ago

AnneFiger commented 1 month ago

Description of Changes

Add in a test for getLngLatFromEvent method in open layers adaptor Slightly change the way we pass in the mock map in the adaptor for testing so this is easier to reuse

Link to Issue

https://github.com/JamesLMilner/terra-draw/issues/90

PR Checklist