i have a problem with styling my point layers.
Is there a possibility to set different styles to a point layer
( different colors/ size ) depending on rules?
I styled my polygones with 5 rules ( 5 different colors and shapes),
but i don´t know how to start with the point layer.
--
You received this message because you are subscribed to the Google Groups "openscales-dev" group.
To post to this group, send email to opensca...@googlegroups.com.
To unsubscribe from this group, send email to openscales-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openscales-dev?hl=en.
i had the problem that i need to define the pointstyle itself (square,
circle,...). I found out that i need the WellKnownMarker right now ;-)
It works. But how do i use a picture (bitmap/jpeg,...) for example?
i can´t find the default mouseOver function. I wanted to change the
moseOver color (points / polygones) from the standard yellow to
another.
Anybody an idea how to solve it?
PS: writing an new mouseOverListener and set it to a new style, slows
the whole application, so that this is not the right way ;-)
i have theSelectFeaturesHandler implemented yet,
(<os:SelectFeaturesHandler id="SFH" active="true"
enableClickSelection="false" enableBoxSelection="false"
enableOverSelection="true" />)
and i know that the property "enableOverSelection" enables the
stylechange on mouseover, but how or where do i specify the style?
[Sry for my inexperience, i´m very new to GIS]
--
<os:SelectFeaturesHandler id="SFH" active="true"
enableClickSelection="false" enableBoxSelection="false"
enableOverSelection="true" />
Is from org.openscales.fx.handler.feature.FxSelectFeaturesHandler.
-> can´t get the "handler.defaultSelectedStyle" property/attribute.
I created a separate SelectFeaturesHandler from
or.openscales.core.handler.feature.SelectFeaturesHandler.
The handler.defaultSelectedStyle is now reachable. Within a
eventhandler that pop ups when i mouse over a feature
[SelectFeaturesHandler.defaultSelectedStyle(event.feature);] i get the
style that the feature has.
In my example is the name: "Default Feature Style".
Now the question: where is the "Default Feature Style" defined and how
can i overwrite it?
I just wanted to set the yellow overColor to another, nothing else,
and it seems to be unsolveable for me ;-)
--
private function blub(event:FeatureEvent):void {
var fill:SolidFill = new SolidFill(0xba122b, 2);
var stroke:Stroke = new Stroke(0xFFFFFF, 9);
var wkm:WellKnownMarker = new
WellKnownMarker(WellKnownMarker.WKN_SQUARE, fill, stroke);
wkm.size = 15;
var ps:PointSymbolizer = new PointSymbolizer();
ps.graphic = wkm;
var ru:Rule = new Rule();
ru.name = "Default rule43";
var st:Style = new (Style);
st.name = "Default point style22";
st.rules.push(ru);
SelectFeaturesHandler.defaultSelectedStyle(event.feature).rules.push(ru);
SelectFeaturesHandler.defaultSelectedStyle(event.feature).rules =
st.rules;
SelectFeaturesHandler.defaultSelectedStyle(event.feature).name =
"test";
Alert.show(SelectFeaturesHandler.defaultSelectedStyle(event.feature).rules.length.toString());
}
Nothing happen in the last 4 rows.
->SelectFeaturesHandler.defaultSelectedStyle(event.feature).name =>
returns me allways the name of the default rule
-
>SelectFeaturesHandler.defaultSelectedStyle(event.feature).rules.length.toString()
=> returns always 1
Is there a restriction to override the incoming values?
Ive tried to ovverride the class: SelectFeaturesHandler, but with no
success. It also seems that i have no permission. My sample code:
public class SelectFeaturesHandler extends
org.openscales.core.handler.feature.SelectFeaturesHandler {}
After that line i got a 1017 error, because
"org.openscales.core.handler.feature.SelectFeaturesHandler" could not
be find.
Thank you very much for the last answers and your patience.
I looking forward to solve my problem.
--
You received this message because you are subscribed to the Google Groups "openscales-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openscales-dev/-/8a4r8n-DngMJ.
To post to this group, send email to opensca...@googlegroups.com.
To unsubscribe from this group, send email to openscales-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openscales-dev?hl=en.