Comments (6)
Here is the official documentation about zoneless requirements.
One way would be to use ChangeDetectionStrategy.OnPush for the components.
If thats not possible:
Components can use the Default strategy as long as they notify Angular when change detection needs to run (calling markForCheck, using signals, AsyncPipe, etc.).
Using signals also means input signals instead of the decorator based version.
from ngx-maplibre-gl.
I think that moving to onPush would make this library more performant, but it is also not an easy change, especially since users can add components inside the provided component.
Feel free to push this as I'm not sure I fully know how, up until now I was using Angular without looking into performance stuff and adding onPush, since it's a lot easier to reason with, so I'm not experienced enough with onPush strategy...
from ngx-maplibre-gl.
Is it what you had in mind? It's just the beginning https://github.com/maplibre/ngx-maplibre-gl/pull/167/files
from ngx-maplibre-gl.
I'm not familiar enough with signals, but sure, if this is how it's done.
from ngx-maplibre-gl.
Is it what you had in mind? It's just the beginning https://github.com/maplibre/ngx-maplibre-gl/pull/167/files
I think that is one way to make it compatible with zoneless. Just curious, why you choose model
instead of input
signal?
from ngx-maplibre-gl.
yeah I think input
would be better.
from ngx-maplibre-gl.
Related Issues (20)
- 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
- 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
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.