开发者

How to enable/disable GoogleMaps in a Flex 3 application?

开发者 https://www.devze.com 2023-04-12 22:47 出处:网络
I hope somebody here can help me with my doubt... I\'m developing an application using the Google Maps API with Adobe Flex Builder 3.

I hope somebody here can help me with my doubt... I'm developing an application using the Google Maps API with Adobe Flex Builder 3. Wrote the "HelloWorld" code provided by the GoogleMaps Reference...

<maps:Map xmlns:maps="com.google.maps.*" id="map" width="100%" height="100%" url="http://localhost" key="I wrote my key here" sensor="false"/>

..and everything goes well but the application consist on a cartesian plane that, optionally, could have the GoogleMap displayed on the background. The point is that I don't know how to hide the map once it is loaded. I would开发者_C百科 like to load it only if I click on a checkbox I came here after searching over the GoogleMaps Reference for some "enable/disable map" function, but I had no luck.

Please, any idea would be very welcome, thanks.


[Bindable]
public var show:Boolean=false;
<mx:Canvas visible={show}>

<maps:Map xmlns:maps="com.google.maps.*" id="map" width="100%" height="100%" url="http://localhost" key="I wrote my key here" sensor="false"/>

</mx:Canvas>

change show value to enable the map.This is temp solution for your problem

0

精彩评论

暂无评论...
验证码 换一张
取 消