| | 341 | invalidateDisplayList(); |
|---|
| | 342 | } |
|---|
| | 343 | |
|---|
| | 344 | |
|---|
| | 345 | /** |
|---|
| | 346 | * Adds a marker (displayObject) to the map. The marker should be a custom DisplayObject that also references any dataObjects you desire, for quick reference on MarkerEvent.CLICK |
|---|
| | 347 | * |
|---|
| | 348 | * @param Location Object that defines lat/long for marker |
|---|
| | 349 | * @param marker (DisplayObject) that is used for display. |
|---|
| | 350 | */ |
|---|
| | 351 | |
|---|
| | 352 | public function addMarker(location:Location, marker:DisplayObject):void { |
|---|
| | 353 | map.putMarker(location,marker); |
|---|
| | 354 | } |
|---|
| | 355 | |
|---|
| | 356 | public function removeMarker(marker:DisplayObject):void { |
|---|
| | 357 | map.removeMarker(marker.name); |
|---|