We have just released amMap v 2.5.0 [Download]
New features added:
Now every custom movie (defined in <movies>) has an attribute that references to the main AmMap object. So the movies now have easier access tomap object’s public properties ant functions. I.e.:
_ammap.zoom_level
_ammap.setZoom()
Additional background settings and map overlay
<stretch> [false] (true / false) should we stretch background over the whole width/heigh?
<overlay_file> [] (filename) swf or jpg file to use as an overlay for the map. This file must be located in path/ folder (set in html file)
<overlay_stretch> [false] (true / false) should we stretch overlay over the whole width/heigh?
Ability to reorder movies, lines and labels layers
A new <layers> setting in which you can set the order of appearance of movies, lines and labels layers. I.e.:
<layers>labels,movies,lines</layers>
In This case lines will be drawn on top, movies underneath it and labels at the bottom. Please note that objects with X/Y coordinates still be drawn over objects with long/lat coordinates due to the nature of internal object placement organization.
Ability to always show hand cursor
New setting <always_hand>. If set to true, mouse cursor will always be hand but only if drag_map=true.
Additional JavaScript function call: amRegisterClickAnywhere()
Works similarly to amRegisterClick, except it is called even when clicked
on a non-object (hence "anywhere") like background, disabled area, etc.
When clicked on background it returns "__background" for an oid.
Internal event broadcasting mechanism
Now main AmMap object acts as a brodcaster of events included movies’ objects can register as listeners to. I.e.:
__ammap.addListener(myObject);
Whenever some event occurs amMap will call corresponding method on myObject. Refer to online documentation for the complete list of events.
Developer mode shortcuts
Keyboard shortcuts were added in developer mode to copy map info into clipboard:
Ctrl + 1 – Copy longitude and latitude
Ctrl + 2 – Copy stage x and y
Ctrl + 3 – Copy stage x% and y%
Ctrl + 4 – Copy zoom info
Additional embedded map marker/movie: rectangle_centered
amMap positions embeded marker "rectangle" according to upper left corder. If you would rather position according to the center of the rectangle use "rectangle_centered"
Bug fixes:
Setting <zoom_on_click> to true caused anomalies when switching to another map which has this setting disabled.
Now when text_box is set to show_on_hover=true and hide_on_roll_out=false text box will show X (close) button.