X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/77344163edef5e20f652c82c634e3aeac61d970a..563338a997321c3572dd3f00f4d07f99b05cbbbf:/IkiWiki/Plugin/osm.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm index 0fd7ca400..2b5d0d5f1 100644 --- a/IkiWiki/Plugin/osm.pm +++ b/IkiWiki/Plugin/osm.pm @@ -9,7 +9,6 @@ use warnings; use IkiWiki 3.0; sub import { - add_underlay("javascript"); add_underlay("osm"); hook(type => "getsetup", id => "osm", call => \&getsetup); hook(type => "format", id => "osm", call => \&format); @@ -529,7 +528,7 @@ sub include_javascript ($) { } } if ($loader) { - return embed_map_code() . ""; + return embed_map_code($page) . ""; } else { return ''; @@ -553,147 +552,18 @@ sub cgi($) { print ("\r\n"); print "
"; print ""; - print embed_map_code($map); + print embed_map_code(); print ""; print ""; exit 0; } -sub embed_map_code() { - return <