Using DisplayObjectMarker to create my own style

37 de afișări
Accesați primul mesaj necitit

diego

necitită,
4 ian. 2013, 08:11:3004.01.2013
– opensca...@googlegroups.com
Hi all. I'm trying to use my own image to display points on a map. This is what I'm doing:

                var lStyle           :Style = new Style();
                var lRule            :Rule = new Rule();
                var lSymbolizer  :PointSymbolizer = new PointSymbolizer (new DisplayObjectMarker (assets.Images.MyMapPin));
           
                lRule.symbolizers.push (lSymbolizer);
                lStyle.rules.push (lRule);
                myLayer.style = lStyle;
                myMap.map.addLayer (myLayer);

The thing is that what is showinng is the default point style (OpenScales' default blue pin). According to the debugger, the only style applied is the style I created. What am I missing?

Diego


Răspundeți tuturor
Răspundeți autorului
Redirecționați
0 mesaje noi