Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maplibre-gl-js compatibility #22

Open
IncidGeo opened this issue Mar 20, 2024 · 3 comments
Open

Add maplibre-gl-js compatibility #22

IncidGeo opened this issue Mar 20, 2024 · 3 comments

Comments

@IncidGeo
Copy link

Hi,
I'd like to know if this library is also working with maplibre-gl-js ?

@markusand
Copy link
Owner

Hi. This library is tightly coupled to Mapbox's Control interface and events. I haven't worked with Maplibre, but it seems that Control is the same as Mapbox. As long as it emits the same events and include the same properties, it could potentialy work. I suggest you to try and tell us ☺️

@IncidGeo
Copy link
Author

IncidGeo commented Mar 20, 2024

Thank you markusand for your answer, it does not seems to work directly
As an exemple to use MapboxDraw in Maplibre i need to add :
MapboxDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl';
MapboxDraw.constants.classes.CONTROL_PREFIX = 'maplibregl-ctrl-';
MapboxDraw.constants.classes.CONTROL_GROUP = 'maplibregl-ctrl-group';

I try to understand it.

@IncidGeo
Copy link
Author

I' had a look to the code, what a nice library ! I won't use 1/100 of the code so I've finally wrote my own code, just need to read the match expression in the map style. It would be very nice to have it for Maplibre, i'm not competent enough to convert it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants