Comments (7)
Thanks. Vite wants ES6 build. I will do it in v2. Sorry, but too much to do to fix v1. v2 is coming in the future.
For now you can try import controls like
import ZoomControl from 'mapbox-gl-controls/src/ZoomControl/ZoomControl';
from mapbox-controls.
Thank you! I will prepare a minimal project shortly.
from mapbox-controls.
Please provide some minimal project with failed build. It can be a bug in my project, bug in Vite, or mistake in build configuration. Vite also has 2 versions right now. Without minimal project I can't reproduce this error and have to close this issue. Thanks.
from mapbox-controls.
Minimal project:
https://github.com/thmr/vite-map-gl-controls-min-proj
from mapbox-controls.
Should fix also #31
from mapbox-controls.
The proposed temporary solution worked out - thanks!
from mapbox-controls.
All code is ES6 now. Hope Vite will not give any errors.
from mapbox-controls.
Related Issues (20)
- [Feature Request]: Event firing after coordinates array has changed (RulerControl) HOT 4
- Programatically use controls HOT 4
- Use without NPM HOT 3
- Feature ID is missing in the inspect's popup HOT 1
- Does it work with maplibre ? HOT 2
- TypeError: undefined is not an object (evaluating 'lineSource.setData') HOT 3
- Style control buttons have one rounded corner when focused HOT 1
- Feature: Expose Base HOT 1
- TypeError: can't access property "getStyle", this.map is undefined HOT 5
- Add Maplibre JS GL v2.1.x Support
- Add title attribute for button controls HOT 1
- [Feature] projection switcher HOT 2
- Export the controls options interfaces HOT 5
- By switching styles, it clears any existing layer HOT 3
- Bug: When used with FullscreenControl, StyleControl buttons multiply HOT 1
- DOMParser undefined in Angular 17 with SSR HOT 1
- Image delete button HOT 2
- Set mapbox-controls layer active on load HOT 2
- Option to set controls titles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-controls.