Difference between revisions of "Widget:OpenStreetMap Marker"

From BuildBrighton
Jump to: navigation, search
 
Line 10: Line 10:
 
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
 
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
<div id="osm_mapdiv"></div>
+
<div id="osm_mapdiv" style="width: 400; height: 400;"></div>
 
<script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>
 
<script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>
 
<script type="text/javascript">
 
<script type="text/javascript">

Latest revision as of 18:55, 26 July 2010

This widget allows you to add OpenStreetMap widget with a marker to your wiki page.

Created by Barney.

Using this widget

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 Widget:OpenStreetMap Marker article.