How to embed a map in a wiki page?

constantijnw
Joined: 19 Mar 2005

How to embed a map in a wiki page?

Posted:18 Nov 2009 (12:14 UTC)
I want to embed a map in a wiki page.


<?php
{attachment id=33 size=small}
?>
writes the line: The attachment id given is not valid.
Will
Joined: 28 Sep 2005

Re: How to embed a map in a wiki page?

Posted:19 Nov 2009 (13:47 UTC)
attachment is for things like images or videos or other binary data that has been uploaded to a page (or other content). so attachment will not work for maps, which are a form of content.

as for embedding a map in a page - there is not a plugin for this currently. gmap package doesnt have this kind of support built in well yet either. probably would be easy to add, but needs to be written.
constantijnw
Joined: 19 Mar 2005

Re: How to embed a map in a wiki page?

Posted:21 Nov 2009 (07:46 UTC)
Would be nice and simple if all content types could be embedded in a wiki page. For now I've created an image of a map. Clicking it should load the map, but its link is truncated at the equal sign:

<?php
{attachment id=2 link=hxxp://bwsite/gmap/index.php?gmap_id=1}
?>
becomes

<?php
{attachment id=2 link=hxxp://bwsite/gmap/index.php?gmap_id}
?>
which loads the default map.
  Page 1 of 1  1