This is XML only plugin - Automatic map with radar.
Usage:
just include xml module in your main tour xml
Usage xml example
How to use automap....
for add map use tag below, all atributes are optional
<map name="map1"
keep="true"
editmode="false"
edge="righttop"
align="righttop"
x="10" y="10"
path="%CURRENTXML%/automap/"
map="%CURRENTXML%/map_images/map.jpg"
mask="%CURRENTXML%/map_images/mapmask.png"
zorder="1"
scale="1"
alpha="1"
radar_alpha="0.5"
radar_visible="true"
point_url="%CURRENTXML%/map_images/viewpoint.png"
point_crop="32"
onclick=""
viewpoint_auto="false"
>
<viewpoint name="p1" scene="" x="" y="" heading="" scale="" mask="" onclick="" onhover="" />
<viewpoint name="p2" scene="" x="" y="" heading="" scale="" mask="" onclick="" onhover="" />
<viewpoint name="p3" scene="" x="" y="" heading="" scale="" mask="" onclick="" onhover="" />
</map>
buildmap(mapname); - map building function
MAP node description:
path - path to xml plugin
map - map image url
mask - map mask image url (if null then use same map image)
radar_alpha - radar opacity
radar_visible - radar visibility, hide map radar beam (true if set none)
point_url - viewpoints image url (has two states - normal/hover and size 1x2)
point_crop - height of viewpoints image (for set of states crop)
onclick - map onclick action
viewpoint_auto - add viewpoints automaticly (set additional attributes in scene node)
editmode - switch map to edit mode, map jump to lefttop,
mouse cursor show x/y,
for detect radar heading - press left button on radar and rotate to direction you will see heading value
VIEWPOINT node description:
scene - target scene name
x - x position from left top corner
y - y position from left top corner
heading - heading of direction
scale - radar scale
mask - radar mask url
onclick - onclick event action
onhover - onhover event action
additional attributes for viewpoint_auto="true" mode, add top scene node
title - scene title (shows viewpoints onhover)
map - name of map
mapx - scene viewpoint x
mapy - scene viewpoint y
mask - scene viewpoint radar mask
heading - scene viewpoint radar heading
example:
<scene name="scene1" map="map1" mapx="50" mapy="35" mask="scene1mask.png" heading="38" ...
NOTE! - if viewpoint_auto="true", remove all viewpoint nodes from map.