Image mapping and external images.

11 views
Skip to first unread message

Romain Maz BILLOIR

unread,
Oct 14, 2011, 1:16:39 PM10/14/11
to SVG Web
(Frenchy, sorry)

Hi everyone, i'm trying to apply a map on some images using the map
element.

The images is loaded by an image element and then displayed by an
using element:

<defs>
<image id="grass" width="38.64" height="29.32"
xlink:href="grass.svg" />
</defs>
<map name="basic_tile" id="basic_tile">
<area shape="polygon" points="14.143,29.32 0,22.249 0,12.248
14.143,10.353" />
</map>
<use xlink:href="grass" x="50" y="50" usemap="#basic_tile" />

I'm trying to create a 2D Iso hexagonal map renderer with a simple
tooltip when players click on tiles.

Thanks.
Reply all
Reply to author
Forward
0 new messages