Alguien pudiera ayudarme a usar el mapoverview es que lo estoy usando con openscale asi como muestor a continuación y no me sale nada solo el panel peor el mapa no me lo muestra, gracias de antemano

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                           xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:os="http://openscales.org";
                           creationComplete="initMap();" resize="resizeMap()">
        <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) 
here -->
<mx:RemoteObject id="myservice" fault="faultHandler(event)" showBusyCursor="true" source="sigfre.fotovolt" destination="amfphp">
                        <mx:method name="getDataFotovolt" 
result="resultHandler(event)" />
                </mx:RemoteObject>
        </fx:Declarations>
<os:Map id="fxmap" width="100%" height="100%" center="-79.41716,22.09477" resolution="0.0115781200" visible="false" projection="EPSG:4326" maxExtent="-180,-90,180,90" >

<os:WFS name="Topp States (WFS)" url="http://localhost:8080/geoserver/wfs"; typename="une:uneProvincia" projection="EPSG:4326" version="1.1.0" style="{Style.getDefaultSurfaceStyle()}" alpha="1" maxExtent="-180,-90,180,90" />



                <os:DragHandler/>
                <os:WheelHandler/>
<os:SelectFeaturesHandler id="selectFeaturesHandler" active="true" enableClickSelection="false" enableBoxSelection="false" enableOverSelection="true"/>
                <os:PanZoom id="panZoom" x="12" y="34"  width="141" 
height="333"/>


<s:Panel id="miniMapPanel" title="Overview map" x="{width-miniMapPanel.width-10}" top="10"> <os:OverviewMap id="miniMap" width="100%" height="100%" extentColor="0xFF3300" newExtentColor="0x00FF33" x="{width-miniMap.width-10}" top="10">
                </os:OverviewMap>
                </s:Panel>


                <os:DataOriginatorsDisplay x="10" y="{height-90}" />

        </os:Map>


        <fx:Script>
                <![CDATA[

                import mx.managers.CursorManager;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import org.openscales.core.basetypes.Resolution;
                import org.openscales.core.events.FeatureEvent;


                import org.openscales.core.Map;
                import org.openscales.fx.popup.FxPopup;
                import org.openscales.fx.popup.renderer.FxPopupRenderer;
                import org.openscales.geometry.basetypes.Pixel;


                private var fxpopup:FxPopup;



                        [Bindable]
                        public var rgData:Object = {
                                dispLagosP:'',
                                dispPend30g:'',
                                dispRiosA:'',
                                dispCarrete:'',
                                dispFerrea:'',
                                dispLElect:'',
                                generalMunic:'',
                                generalProv:'',
                                generalPueblo:'',
                                solarAnual:'',
                                solarMes: Array
                        };
                        [Bindable]
                        private var map:FxMap;

                        private function resizeMap():void {
                                miniMap.height = 0.2 * this.height;
                                miniMap.width = this.width * miniMap.height / 
this.height;
                        }


                        private function initMap():void {
                                map=fxmap;
                                map.center = "-79.58,22.20,EPSG:4326";
                                map.resolution = new Resolution(0.011343323, 
"EPSG:4326");
                                map.visible = true;
                                
map.map.addEventListener(FeatureEvent.FEATURE_CLICK, this.onFeatureClick);
                        }

                        public function onFeatureClick(event:FeatureEvent):void
                        {

                                if(fxpopup){
                                        fxpopup.destroy();
                                }
                                fxpopup = null;
                                fxpopup = new FxPopup();
                                fxpopup.fxmap = map;

                                var content:String="";

                                var fxpopupRenderer:FxPopupRenderer = new 
FxPopupRenderer();
                                fxpopup.popupRenderer = fxpopupRenderer;
                                fxpopup.feature = event.feature;

var pixel:Pixel = fxpopup.fxmap.map.getMapPxFromLocation(event.feature.lonlat);
                                fxpopup.relativePosition = 
fxpopup.calculateRelativePosition(pixel);
                                fxpopup.position = pixel;
                                
fxpopup.setCurrentState(fxpopup.relativePosition,false);

                                if(event.feature.name){
                                        fxpopupRenderer.titleContent = 
event.feature.name;
                                }

                                for(var attribute:String in 
event.feature.attributes) {
                                        if((attribute == "provincia"))
                                        {
content = content + "<b>" + attribute + "</b> : " + event.feature.attributes[attribute] + "<br />";
                                                break;
                                        }

                                }

                                fxpopupRenderer.content = content;
                                map.addFxPopup(fxpopup,true);
                                fxpopup.visible = true;

                        }

                private function faultHandler(fault:FaultEvent):void
                {
                CursorManager.removeBusyCursor();

                }

                private function getDataFV():void
                {
                         var lat:String;
                         var lon:String;
                         var rad:String;


                        if(lat.length!=0 && lon.length!=0 && rad.length!=0)
                        {
                                
myservice.getOperation('getDataFotovolt').send(lon,lat, rad);
                        }
                }

                private function resultHandler(evt:ResultEvent):void
                {
                rgData=evt.result;

                }

                ]]>
        </fx:Script>

</s:Application>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


--

Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/
_______________________________________________
Spanish mailing list
http://lists.osgeo.org/mailman/listinfo/spanish
http://es.osgeo.org
http://twitter.com/osgeoes

Responder a