How to get an OpenLayers Vector Layer to always draw all features, regardless of zoom, range, etc? -
i have huge polygon (20km x 100km) , can't render @ zoom level greater 15 or so.
it seems related zoom level, because have 20km , 100km lines drawn across screen sanity check. zooming in level 16, polygon , 100km lines disappear, 20km lines remain through level 17, disappear @ max zoom on level 18. have pretty basic vector layer default settings:
var vectorlayer = new openlayers.layer.vector('my layer', { ratio: 10, alwaysinrange: true });
demo: http://jsfiddle.net/colllin/9xkbh/
put following script tag, placed somewhere after openlayers.js has been loaded (eg. on top of js fiddle):
openlayers.renderer.svg.prototype.max_pixel = number.max_value;
source: open issues on github
Comments
Post a Comment