'setExtent' on vector layer not working?

المشرف العام

Administrator
طاقم الإدارة
As pre my requirement I want to set layer extent after drawing all the features. May some feature not visible after applying setExtent() function(this is my requirement). But it's not working. It's working fine with Tiles layer. Here is my code snippet.

var cellLayer = new ol.layer.Vector({ name: LAYER_NAME_CELL, extent:[12568355.379388269, 3268309.784291403, 12582419.792592742, 3275590.4112355663], source: new ol.source.Vector({features: []}) });

أكثر...
 
أعلى