How to load Open layers 3 geojson vector layer with bbox?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am struggling with building OL3 Vector layer BBOX strategy loading. So far I can easily load Geojson file with valid json syntax, however this is one time strategy. My another approach was to use ol.ServerVector which to my understading returns Javascript with callback, but I can't make it work. Working simple Geojson layer: var vectorSource = new ol . source . GeoJSON ( ({ projection : 'EPSG:3857' , preFeatureInsert : function ( feature ) { feature . geometry . transform ( 'EPSG:4326' , 'EPSG:3857' ); }, url : 'geojson2.json' })