[OpenLayers-Users] display a border at the end of the world
Sergeant_york
electronicpanda at gmail.com
Mon Mar 11 16:54:12 PDT 2013
General solution for your openlayers map in client side should be something
like that (tested for google map but should work for every kind of base map
that you are using):
var maxExtentG=map.getMaxExtent().toGeometry();
var feat = new OpenLayers.Feature.Vector(maxExtentG, {});
var lStyle = OpenLayers.Util.extend({},
OpenLayers.Feature.Vector.style['default']);
lStyle.fillOpacity = 0;
lStyle.strokeColor="black";
lStyle.strokeWidth=13;
var worldExtentBorders = new
OpenLayers.Layer.Vector("worldExtentBorders",{style: lStyle});
worldExtentBorders.addFeatures(feat);
map.addLayer(worldExtentBorders);
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/display-a-border-at-the-end-of-the-world-tp5039296p5039793.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list