Comments (12)
If no one else is already working on adding clusters, I will do it.
Happy with the new project name too, fits great.
from ngx-openlayers.
@greggguru are you working on it currently? Would be extremely grateful if you complete implementation of that feature. I highly need that to my Angular 4 app but unfortunately I am not capable of creating that feature on my own. Keep my fingers crossed.
Best regards,
Mikołaj
from ngx-openlayers.
Only a subset of OL4 is implemented. It's usually trivial to add things, just create a component and map all properties.
from ngx-openlayers.
@greggguru AFAIK, no one is publicly working on this right now. Would be greatly appreciated though!
from ngx-openlayers.
Ack, best intention to get this done quickly has failed. I'm sorry. I still would like to implement this feature. Let's see what this weekend will allow me to complete.
from ngx-openlayers.
Hi yall. I want to help with implementing this.
I had something in mind like the following
<aol-layer-vector>
<aol-source-cluster>
<aol-source-vector>
<aol-feature> ...
That ok ?
from ngx-openlayers.
Was this implemented by anyone?
I see that <aol-source-cluster>
exists in the code, but I couldn't understand how to use it...
from ngx-openlayers.
You can find an example here => https://quentin-ol.github.io/ngx-openlayers/examples/cluster
The source code is here
from ngx-openlayers.
Link is dead,
I found the following code in the example to show how cluster works:
<aol-layer-vector>
<aol-source-cluster [distance]="distance">
<aol-source-vector>
<aol-feature *ngFor="let p of points">
<aol-geometry-point>
<aol-coordinate [x]="p.x" [y]="p.y" [srid]="'EPSG:4326'"></aol-coordinate>
</aol-geometry-point>
</aol-feature>
</aol-source-vector>
<aol-style>
<aol-style-circle [radius]="10">
<aol-style-stroke [color]="'#fff'"></aol-style-stroke>
<aol-style-fill [color]="'#3399CC'"></aol-style-fill>
</aol-style-circle>
<aol-style-text [text]="'1'">
<aol-style-fill [color]="'#fff'"></aol-style-fill>
</aol-style-text>
</aol-style>
</aol-source-cluster>
</aol-layer-vector>
But I can't figure out how to get the feature instance of the cluster in order to set the text for the style.
In the cluster documentation the style is set with a function that receives a feature, how does one implement this using this library?
from ngx-openlayers.
P.S thanks for the quick response!
from ngx-openlayers.
I now see that what I'm looking for is discussed here: #186, I'll move my question there.
from ngx-openlayers.
I'm guessing this is implemented and can be closed, right? (So that future developers wouldn't think this is still not implemented since it is open).
from ngx-openlayers.
Related Issues (20)
- ⚠️ Migration OL5 and next release steps ⚠️ HOT 2
- Warnings in console about OL objects
- next version with OL5 and definitely typed has compile errors
- Ngx-openlayers is extremely slow HOT 1
- Point with altitude with ol-cesium
- cluster preformance HOT 1
- How to show current geolocation HOT 1
- Vulnerabilities reported by npm audit HOT 1
- Angular 9 >> ERROR in Symbol MapComponent declared in...is not exported from..../ngx-openlayers/dist/index.js HOT 8
- Mouse issue on next build HOT 6
- How to access the OpenLayers API? HOT 3
- Custom openlayers loader function HOT 2
- not work in Angular 9 HOT 2
- feat: Angular 10 Support HOT 4
- How to capture a mouse over event on a <aol-feature> with OpenLayer HOT 3
- <aol-overlay> can't getPosition HOT 3
- Why did you stop supporting? HOT 2
- The map is not showing inside a modal HOT 1
- Update HOT 1
- Update to Angular 16 HOT 1
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-openlayers.