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

From Sudo Room
Jump to navigation Jump to search
(oops, i zoomed in before - ACTUALLY zoom out)
(pass address & link)
Line 24: Line 24:
     map.setCenter (lonLat, zoom);
     map.setCenter (lonLat, zoom);


     map.addPopup(new OpenLayers.Popup.FramedCloud("Popup",  
     map.addPopup(new OpenLayers.Popup.FramedCloud("Popup",lonLat, null,
        lonLat, null,'<!--{$text|escape:'html'|default:markertext}-->', null,true
      '<!--{$text|escape:'html'|default:markertext}-->&nbsp;&nbsp;&nbsp;' +
      '<br /><br /><!--{$address|escape:'html'|default:markertext}-->' +
      '(<a href="<!--{$link|escape:'html'|default:markertext}-->">Directions</a>)', null,true
     ));
     ));
   </script>
   </script>
</includeonly>
</includeonly>

Revision as of 21:12, 3 March 2014

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