Comments (9)
Not sure what's needed here.
If you think this should be part of the docs please create a PR.
Point
is a maplibre-gl-js dependency that can't be removed and export as default (the "old way").
from ngx-maplibre-gl.
I am facing the same problem after following the exact documentation of ngx-maplibre-gl.
Any solution for this?
from ngx-maplibre-gl.
See the following example (missing css though):
https://stackblitz.com/edit/angular-ivy-fpge8r?file=src%2Findex.html
from ngx-maplibre-gl.
@Ste-denko, @damian-kociszewski isn't adding allowSyntheticDefaultImports
to tsconfig.json solves this?
from ngx-maplibre-gl.
Adding allowSyntheticDefaultImports to tsconfig.json fixes it.
@HarelM could you provide some background info about this.
What is the parameter allowSyntheticDefaultImports for?
To which value should it be set in the tsconfig.json (true/false)?
from ngx-maplibre-gl.
It's worth reading this in the typescript manual as I might not explain it very good.
The bottom line is that the geomerty-point
is exported in a way that requires this flag and the typings for the geomerty-point
honors that type of export.
This package is used in the maplibre-gl package which is also needed in order to work with this package.
I hope this explain this well enough, but if not I advise to read about this flag in the manual...
from ngx-maplibre-gl.
@HarelM thank you.
For me this is fixed now and could be closed.
from ngx-maplibre-gl.
Hi @HarelM
Please update the doc too. I was not able to find this on the readme: https://github.com/maplibre/ngx-maplibre-gl
This works for me:
tsconfig.json
"angularCompilerOptions": {
...
"allowSyntheticDefaultImports": true
}
from ngx-maplibre-gl.
@Sampath-Lokuge feel free to open a PR to improve the docs.
from ngx-maplibre-gl.
Related Issues (20)
- v15 breaks popups with [closeOnClick]="true" HOT 19
- Map does not render at full height HOT 7
- Add support for standalone components HOT 1
- Use the new SVG for MapLibre HOT 3
- runtime error HOT 2
- HTML Cluster HOT 2
- Sending lngLat changes to a marker before mapCreated has been fired causes crash HOT 7
- Support for Maplibre directions HOT 3
- Input for mgl-marker rotation missing. HOT 4
- Auto generate API docs
- Demo page SPA is not working as expected HOT 10
- Improve API docs experince
- Remove zone.js HOT 6
- Angular 15 support HOT 28
- Help: MapKit JS integration with this Library HOT 4
- bearing attribute not working on Map?
- Map does not fill its container -- how to force a resize? HOT 5
- Map Component in <div> not displaying map HOT 2
- Showcase website gets unresponsive HOT 1
- Browser window resizing brakes map rendering HOT 6
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 ngx-maplibre-gl.