Tag Info

New answers tagged


You didn't mentioned how you're initiating the ward area polygon layer. Let's assume, if you're using cartodb.createlayer function, setting up infowindow:false hides the infowindow for this layer cartodb.createLayer(map, 'url_to_polygon_layer', {infowindow:false}).addTo(map) Same way if you're using cartodb.createVis, passing infowindow:false would hide ...


You can listen to the boxend event that is emitted when the user finished creating a drag box. Something like dragbox.on('boxend', function(evt) { form.coordinates.value = dragbox.getGeometry().getExtent().join(','); });


Here's an example that accomplishes what you want (I think): http://jsfiddle.net/tschaub/Lkgx0qaa/ I've created a map with three layers, only the first one (named roads) is visible: var roads = new ol.layer.Tile({ source: new ol.source.BingMaps({key: key, imagerySet: 'Road'}) }); var clipped = { imagery: new ol.layer.Tile({ source: new ...


I have tried everything with my (unfortunately limited) JavaScript knowledge to set the clip dynamically on the selected layer. I couldn't manage to save and restore the whole canvas context, neither the layer's one. I have tried to unbind the event from the layer, no luck. Neither strUser.un(evt, func) or evt.stopPropagation() worked out. For this, I ...

Top 50 recent answers are included