Commit 28c8938f authored by nishanth's avatar nishanth

Update index.html

parent 2c0776a7
Pipeline #14571 passed with stage
in 14 seconds
......@@ -405,8 +405,27 @@ L.marker([17.59672,78.44342], {icon: myIcon}).addTo(map);
maxZoom: 20,
minZoom: 9
}).addTo(map);
L.Control.Watermark = L.Control.extend({
onAdd: function(map) {
var img = L.DomUtil.create('img');
</script>
img.src = 'https://www1-lw.xda-cdn.com/files/2011/06/watermark.jpg';
img.style.width = '150px';
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>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment