New answers tagged

2

When you are computing distance (I'm guessing using a buffer tool given the concentric color zones), under Environments, expand Processing Extent and set the Extent to your Polygon file.


0

whatever type of vector layer you are using you can add this function in OpenLayers 3 to fit your map extent to the layer one: var extent=yourVectorSource.getFeatures()[0].getGeometry().getExtent(); yourVectorSource.forEachFeature(function(feature){ ol.extent.extend(extent,feature.getGeometry().getExtent())}); yourMap.getView().fit(extent, yourMap.getSize())...



Top 50 recent answers are included