Map events with Flex
1
person likes this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Flex component events are commented in com.modestmaps.flex.Map with this message:
/**
* There's something funky going on with coercion of these event types.
* I'll have to investigate before event attributes will work in MXML.
* - shawn
*/
But when i'am uncomment that block and add dispatch event:
protected function onMapStopPanning(event:MapEvent):void
{
dispatchEvent(new MapEvent("stopPanning"));
}
This code working:
[mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:modest="com.modestmaps.flex.*"]
[modest:Map id="myMap" left="10" top="10" height="600" width="600"
provider="MICROSOFT_AERIAL" extent="40.764941, 40.693655, -73.938675, -74.039612" stopPanning="positionLabel.text=myMap.center.toString()"/]
[mx:Label id="positionLabel" x="10" y="622" text="Label"/]
[/mx:Application]
I’m happy
-
Inappropriate?I'll check it out, thanks for letting us know.
Another Modest Maps contributor let us know that the original error was because we didn't override the clone() method in MapEvent.
I'd welcome input from a Flex expert on how the Flex component should behave - let us know if you're here, we're listening.
I’m positive
The company thinks
this is one of the best points
-
Inappropriate?How can modestmaps be contrained to a lon/lat boundary?
Loading Profile...



EMPLOYEE
