Comments (4)
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.
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.
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.
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)
- Using a wms HOT 1
- Cluster are not recomputed when pan the map HOT 1
- Start animation once the action has finished
- Ugly clusters renderyng after zoom and pan map HOT 14
- Reference from popup to feature gets lost when map pans HOT 2
- Cluster color based on feature attributes HOT 1
- GetDataExtent() Returns Incorrect Value
- feature attributes in featureselected HOT 2
- compatibility with OL 2.13? HOT 1
- Clusters keep redrawing after showing popup HOT 2
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 animatedcluster.