4
I Use This!
Activity Not Available

News

Posted about 12 years ago by [email protected] (WillPetty)
you can just loop through the features in the drawing layer and look at the lonlat attribute. something like lat = (map.getLayerByName("Drawings" ) as VectorLayer).features[i].lonla t.lat lon = (map.getLayerByName("Drawings" ) as VectorLayer).features[i].lonla t.lon for polygons/ paths you may need to go a bit deeper by looking at the
Posted about 12 years ago by [email protected] (WillPetty)
I normally add my layers in AS not MXML, but you don't need the "?request=GetMap" in the url do you? -Will
Posted about 12 years ago by [email protected] (nanda kishor)
Thanks Namrata. Now there is no error. My function is as follows: function imgStyle():Style{ [Embed (source = "../src/assets/Clear.png")] const imgData:Class; var mark:DisplayObjectMarker = new DisplayObjectMarker(imgData); var symbolizer:PointSymbolizer = new PointSymbolizer(mark); var style:Style = new Style();
Posted about 12 years ago by [email protected] (WillPetty)
we are also seeing huge performance problems when adding a few thousand points to a feature layer.. I'm not sure what the possible solutions to this problem are, but I'd like to make people aware of the problem. -Will
Posted about 12 years ago by [email protected] (Ossi Rönnberg)
Well as I said... All the actual program code is still running in the ActionScript. XML-part just describes the UI, not the program logic. You don't even need to use single ![CDATA[ to include your source code from other files. <fx:Script source="file.as"> Also you can still do everything from the AS-code, but trust me... it's WAY
Posted about 12 years ago by [email protected] (Munna)
@Namrata, Can you help form this..,(Styling the point WFS layer) I have defined WFS layer. I am not getting where i have to define the style. this is my map code..(In Flex 3) <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns="*" xmlns:mx="[link]" xmlns:os="[link]"
Posted about 12 years ago by [email protected] (Namrata Nikam)
Yes, It is possible by using 'DisplayObjectMarker' class. You can write style function like this function imgStyle() :Style { [Embed (source="../src/marker.png")] static const imgData:Class; var mark:DisplayObjectMarker = new DisplayObjectMarker(imgData); var symbolizer:PointSymbolizer = new PointSymbolizer(mark);
Posted about 12 years ago by [email protected] (Namrata Nikam)
Yes, It is possible by using 'DisplayObjectMarker' class. You can write style function like this function imgStyle() :Style { [Embed (source="../src/marker.png")] static const imgData:Class; var mark:DisplayObjectMarker = new DisplayObjectMarker(imgData); var symbolizer:PointSymbolizer = new PointSymbolizer(mark);
Posted about 12 years ago by [email protected] (nanda kishor)
@ Namrata, Is it possible to display a jpeg/image as the points in WFS, according to rule. Regards, Munna On Mon, Apr 9, 2012 at 5:11 PM, Namrata Nikam
Posted about 12 years ago by [email protected] (Igor Thiesen)
Hello guys, i'm new at OpenScales. I'm trying to catch the coordinates of the points, paths and polygons that i draw using the FeatureDrawing tool. Do you guys know how can i solve that? Thank you.