Code Monkey home page Code Monkey logo

Comments (12)

greggguru avatar greggguru commented on May 13, 2024 3

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.

MSkraburski avatar MSkraburski commented on May 13, 2024 3

@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.

achimha avatar achimha commented on May 13, 2024

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.

quentin-ol avatar quentin-ol commented on May 13, 2024

@greggguru AFAIK, no one is publicly working on this right now. Would be greatly appreciated though!

from ngx-openlayers.

greggguru avatar greggguru commented on May 13, 2024

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.

codeMonkeysBe avatar codeMonkeysBe commented on May 13, 2024

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.

HarelM avatar HarelM commented on May 13, 2024

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.

davinkevin avatar davinkevin commented on May 13, 2024

You can find an example here => https://quentin-ol.github.io/ngx-openlayers/examples/cluster
The source code is here

from ngx-openlayers.

HarelM avatar HarelM commented on May 13, 2024

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.

HarelM avatar HarelM commented on May 13, 2024

P.S thanks for the quick response!

from ngx-openlayers.

HarelM avatar HarelM commented on May 13, 2024

I now see that what I'm looking for is discussed here: #186, I'll move my question there.

from ngx-openlayers.

HarelM avatar HarelM commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.