Giter Club home page Giter Club logo

Comments (4)

acanimal avatar acanimal commented on August 28, 2024

Hi noog,
when using the cluster strategy some features may satay alone, that is not clustered, and the feature remains the original.
Only when the algorith custers a set of features it creates a new feature to represent them wich contains the 'cluster' property and the 'count' attribute.

Your rules must take into account if the features are "single" features or "clustered" features.

Cheers.

from animatedcluster.

noog avatar noog commented on August 28, 2024

hello,
my rule count if the feature is single (less than 2)
but i can't get information (${poi_cat}) from the only point

my rule to determine is there is only one point

         var oneRule = new OpenLayers.Rule({

             filter: new OpenLayers.Filter.Comparison({
                 type: OpenLayers.Filter.Comparison.LESS_THAN,
                  property: "count",
                 value: 2
             }),
             symbolizer: {
                  fillOpacity: 1,
                opacity : 1,
                 externalGraphic: "/drawable-hdpi/theme/${poi_cat}.png",
                 graphicHeight: 50, graphicWidth: 50, 

graphicXOffset:-25, graphicYOffset:-25
}
});

thanks for your help

Le 18/11/2013 08:10, acanimal a écrit :

Hi noog,
when using the cluster strategy some features may satay alone, that is
not clustered, and the feature remains the original.
Only when the algorith custers a set of features it creates a new
feature to represent them wich contains the 'cluster' property and the
'count' attribute.

Your rules must take into account if the features are "single"
features or "clustered" features.

Cheers.


Reply to this email directly or view it on GitHub
#12 (comment).

from animatedcluster.

acanimal avatar acanimal commented on August 28, 2024

When setting the style you can use a "context" function.
Take a look to the online OpenLayers Cookbook samples: http://acanimal.github.io/Openlayers-Cookbook/
Check the "Chpt07 - Styling clustered features". In that example I'm styling cluster features depending on the number of elemetns.
What you can do is to check if the feature.attribute.cluster exists or not and style the feature.
Cheers.

from animatedcluster.

noog avatar noog commented on August 28, 2024

thank you sooooo much !!! :)
this is the result

http://cusapp.com/themetest/noel

Le 25/11/2013 17:05, acanimal a écrit :

When setting the style you can use a "context" function.
Take a look to the online OpenLayers Cookbook samples:
http://acanimal.github.io/Openlayers-Cookbook/
Check the "Chpt07 - Styling clustered features". In that example I'm
styling cluster features depending on the number of elemetns.
What you can do is to check if the feature.attribute.cluster exists or
not and style the feature.
Cheers.


Reply to this email directly or view it on GitHub
#12 (comment).

from animatedcluster.

Related Issues (11)

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.