Difference between revisions of "Widget:OSM-Sudoroom-dev"

From Sudo Room
Jump to navigation Jump to search
(dimensions need units)
(gratuitous space)
Line 7: Line 7:
 
     map = new OpenLayers.Map("mapdiv");
 
     map = new OpenLayers.Map("mapdiv");
 
     map.addLayer(new OpenLayers.Layer.OSM());
 
     map.addLayer(new OpenLayers.Layer.OSM());
 +
  
 
     var lonLat = new OpenLayers.LonLat( <!--{$mklon|escape:'html'|default:-122.267652}--> ,<!--{$mklat|escape:'html'|default:37.810963}--> )
 
     var lonLat = new OpenLayers.LonLat( <!--{$mklon|escape:'html'|default:-122.267652}--> ,<!--{$mklat|escape:'html'|default:37.810963}--> )

Revision as of 20:07, 3 March 2014

This is a homebrew attempt at making an OSM widget in mediawiki, fancier than the official extension will allow.