Comments (3)
Thanks a lot for the help @jonathanlurie . I will test this solution out and revert back in case of any issues.
from maptiler-sdk-js.
Hello @AmoghBhagwat123 ,
apologies for the late reply! We currently have a team member working on updating our Angular example to v16, we'll let you know when it's ready!
Though, after some investigation, I believe that Angular is not the issue here. Our SDK extends MapLibre GL JS and has it as part of its dependencies with compatible versions being "^3.1.0"
, which means that as long as the major version is 3
, then it should work (compatible with "3.x.x"
).
In MapLibre 3.2.0 (released 2 weeks ago) this commit led to replacing some of GeolocateControl
class method by "equivalent" arrow functions. They are equivalent in terms of the feature they provide but they are not in terms of OOP design and inheritance pattern and this is why TypeScript is yelling.
I will make an update ASAP on the SDK to use MapLibre 3.1.0
(fixed version) instead of ^3.1.0
.
What you can do in the meantime is to explicitly install the SDK alongside a specific version of MapLibre:
npm install @maplibre/sdk [email protected]
Apologies for the inconvenience!
from maptiler-sdk-js.
Hello again @AmoghBhagwat123 ,
this morning I have published a patch to the SDK, now available as v1.1.2 (https://www.npmjs.com/package/@maptiler/sdk) . The change is so that the MapLibre version is now fixed (no longer accepting minor/patch updates).
If you install the latest SDK, now it should come with the MapLibre v3.1.0 by default. Please let me know if you are still having issues with this.
from maptiler-sdk-js.
Related Issues (15)
- MaptilerNavigationControl not available in the maptiler-sdk.d.ts HOT 3
- Compact attribution control not working HOT 7
- An error occurred while adding the weather layer HOT 1
- type declaration for typescript not working properly. HOT 5
- toBounds is not a function HOT 2
- `fullscreenstart` and `fullscreenend` event missing HOT 3
- Text field of GeoJSON symbol layer not visible HOT 4
- support maplibre-gl-js v4 HOT 2
- Memory leak HOT 4
- Broken imports from maplibre-gl HOT 7
- Update @maptiler/weather HOT 4
- 404 for doc links in readme HOT 1
- Make maker PopUp clickable HOT 3
- Changing MapTilerNavigationControl options have no effect HOT 2
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 maptiler-sdk-js.