Category Archives: Maps

Showing a popUp as infoWindow

Padrão

To show a popUp as an infoWindow. This way you can show more than one infoWindow at the same time.


var popup:IFlexDisplayObject = PopUpManager.createPopUp(map, infoWindow);
var globalPos:Point = map.localToGlobal(map.fromLatLngToViewport(marker.getLatLng()));
popup.move(globalPos.x - popup.width/2, globalPos.y - popup.height - marker.getDisplayObject().height);
return popup;

Google maps flash api

Padrão

Right now, i’m working with Google Maps Flash api. It’s realy amazing what you can do with this framework but i found a Problem:
You can’t add more then one Info Window into the map.

Solution:
Create you own Overlay, extending OverlayBase

See the examples:
http://sunild.com/proto/Earthquakes2/Earthquakes.html

Here an alternative to put Markers using Degrafa:
http://sunild.com/proto/DegrafaMapMarkers/DegrafaMapMarkers.html

Thanks to the Sunil’s blog,

Iuri