Widget:Custom map

This widget allows you to embed Example on your wiki page.

Created by Acnetj

Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy [ full source code] of this page to your wiki as  article.   var map; function map_init{ map = new OpenLayers.Map('map');

var options = {numZoomLevels: };

var graphic = new OpenLayers.Layer.Image(               ,                ,                new OpenLayers.Bounds(0, 0,, ),                new OpenLayers.Size,                options            ); graphic.events.on({               loadstart: function {                    OpenLayers.Console.log("loadstart");                },                loadend: function {                    OpenLayers.Console.log("loadend");                }            });

map.addLayers([graphic]); map.addControl(new OpenLayers.Control.LayerSwitcher); map.zoomToMaxExtent; }

function imap_init{ map = new OpenLayers.Map('map');

var options = {numZoomLevels: };

var graphic = new OpenLayers.Layer.Image(               ,                ,                new OpenLayers.Bounds(0, 0,, ),                new OpenLayers.Size,                options            ); graphic.events.on({               loadstart: function {                    OpenLayers.Console.log("loadstart");                },                loadend: function {                    OpenLayers.Console.log("loadend");                }            });

map.addLayers([graphic]); map.addControl(new OpenLayers.Control.LayerSwitcher); map.zoomToMaxExtent; }  if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)){ imap_init; } else{ map_init; }