[OpenLayers-Users] bounds

bartvde at osgis.nl bartvde at osgis.nl
Tue Nov 10 09:10:11 EST 2009


You mean alert(map.getExtent().toString()); ?

Best regards,
Bart

> Hi All,
>
>
>
>
>
> I am trying to get the BBox of the current view by clicking a link
>
>
>
> The following works at requesting the file
>
>
>
>    var layer = new OpenLayers.Layer.Vector("POIs", {
>
>                     strategies: [new OpenLayers.Strategy.BBOX({resFactor:
> 1.1})],
>
>                     protocol: new OpenLayers.Protocol.HTTP({
>
>                         url: "textfile.php",
>
>                         format: new OpenLayers.Format.Text()
>
>                     })
>
>                 })
>
>
>
> And it returns
>
>
>
> Textfile.php?bbox=0.502699952,-36.9792000164,49.654700048,-20.1855999836
>
>
>
> I would like to somehow click a link and just alert this,
>
> Do you think it's possible?
>
>
>
> K-
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list