Recent activity
Subscribe to this feed
Benoit replied on July 20, 2009 00:21 to the question "How to draw a line between two Markers ?" in Modest Maps:
Benoit asked a question in Modest Maps on July 19, 2009 05:06:
How to draw a line between two Markers ?How can I draw a line between two Markers ?
Benoit asked a question in Modest Maps on June 28, 2009 03:27:
GreateeLineOverlay IssuesHow to use Greatelineoverlay to draw a line between two points?
Benoit asked a question in Modest Maps on June 28, 2009 02:40:
Map Measuration IssuesI thing my measuration codes aren't precision. From Japen to China only 1300 KM, actually is 2200KM or more. How can fix this ?
/* store the location */
var loc:Location = NeoMap.map.pointLocation(new Point( map.mouseX, map.mouseY /* e.localX, e.localY */),map);
_locationPointsArray.push(loc);
_distance = Distance.approxDistance(_locationPointsArray.pop(), _locationPointsArray.pop(), Distance.R_MILES);
Benoit replied on June 26, 2009 07:48 to the question "Map KeyEvent Issue" in Modest Maps:
I add put these code into the map.addToStage function but it dosen't work ?
private function mapAddToStage(e:Event):void
{ /* as same as the map.mouseclick */
/* but I have to click map to set the focus then the keyboardevent will be effect */
map.focusRect = false;
map.stage.focus = NeoMap.map;
map.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
map.addEventListener(KeyboardEvent.KEY_UP, keyUp);
}
Benoit replied on June 25, 2009 16:15 to the question "Map KeyEvent Issue" in Modest Maps:
Benoit replied on June 25, 2009 16:07 to the question "Map KeyEvent Issue" in Modest Maps:
Benoit asked a question in Modest Maps on June 25, 2009 14:22:
Map KeyEvent IssueHow can I move the map until keyboard.KeyUp event dispatched ?
Not just move one time .
Benoit replied on June 23, 2009 01:25 to the question "Measure two point in flex" in Modest Maps:
I feel the reture value is too small. It isn't seem a real value.
private function clickhandler(e:mouseevent):void{
var point:Point = new Point(e.localX, e.localY);
/* save twice value of clicking position */
_localPoinsArray.push(new Point( e.localX, e.localY));
}
var dis:number = Distance.approxDistance(_locationPointsArray.pop(), _locationPointsArray.pop(), Distance.R_MILES);
trace( dis ); /* too small */
Benoit asked a question in Modest Maps on June 22, 2009 06:47:
How to make map provider ?How to make a map provider to provide my map data ?
Benoit replied on June 22, 2009 04:25 to the question "MapControls Issue" in Modest Maps:
Yes, that works. But I don't wanna show the buttons of the MapControl. Just need the handle keyboard ability. How should I do ?
I didn't add MapControls object to the map object.
<modest:mapcomponent>
private function ccHandler(...):void{
...
navButtons = new MapControls(_map, true, false);
map.addEventListener(KeyboardEvent.KEY_DOWN, keyboardHandler);
}
private function keyboardhandler(e:keyboradevent):void{
/* not executing */
...
...
}
why ?
</modest:mapcomponent>
Benoit asked a question in Modest Maps on June 22, 2009 03:24:
MapControls IssueI declare a MapControls object for my map object.
<modest:mapcomponent>
private function ccHandler(...):void{
...
navButtons = new MapControls(_map, true, false);
}
MapControl.onAddToStage function doesn't run. So I can't control keyboard event. And When I click the Map pop up a error window indicating the stage is null.
Why ?</modest:mapcomponent>
Benoit replied on June 17, 2009 08:03 to the question "Measure two point in flex" in Modest Maps:
Benoit replied on June 17, 2009 07:57 to the question "Measure two point in flex" in Modest Maps:
This is whole codes.
private function NeoMapClickHandler(e:MouseEvent):void{
var loc:Location = NeoMap.map.pointLocation(new Point(e.localX, e.localY), NeoMap.map);
/* Stored in an array */
_localPointsArray.push(loc);
var m:Marker = new Marker(loc, "Marker" + _localPointsArray.length);
NeoMap.map.putMarker(loc, m);
if( _localPointsArray.length == 2 ){
_distance = Distance.approxDistance(_localPointsArray.pop (),_localPointsArray.pop(), Distance.R_MILES);}
Benoit replied on June 17, 2009 07:43 to the question "Measure two point in flex" in Modest Maps:
Yeah, But I trace the return value is always the same.
Even more surprising is that I can use this location to put Markers correctly.
trace("location:" + loc);
trace("e.localX, e.localY:" + e.localX, e.localY);
location:37.75760,-122.45657
e.localX, e.localY:613 218
location:37.69514,-122.43871
e.localX, e.localY:639 333
Benoit asked a question in Modest Maps on June 17, 2009 05:04:
Measure two point in flexI recorded the coordinate of two point , and retrieve them to the Location value.
var loc:Location = NeoMap.map.pointLocation(new Point(NeoMap.mouseX, NeoMap.mouseY), NeoMap)
Distance.approxDictance Return value is always the same location! Where I am wrong?
var dic:Number = Distance.approxDistance(_localPointsArray.pop(), _localPointsArray.pop(), Distance.R_MILES);
Loading Profile...
