Sha256: 3137bb5f25fe4d18550d6a1bf041a132038e4b8edef49bf19a223dd59a863387
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 Bytes
Contents
--- layout: tutorial_frame title: Watermark control --- <script type='text/javascript'> var map = L.map('map', { center: [40, 0], zoom: 1 }); var positron = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', { attribution: "CartoDB" }).addTo(map); L.Control.Watermark = L.Control.extend({ onAdd: function(map) { var img = L.DomUtil.create('img'); img.src = '../../docs/images/logo.png'; img.style.width = '200px'; return img; }, onRemove: function(map) { // Nothing to do here } }); L.control.watermark = function(opts) { return new L.Control.Watermark(opts); } L.control.watermark({ position: 'bottomleft' }).addTo(map); </script>
Version data entries
3 entries across 3 versions & 1 rubygems