[OpenLayers-Users] bounds NULL or not?
Eike Kreikenbaum
kreikenbaum at gmx.de
Thu Mar 17 19:12:28 EDT 2011
Hi together
i use following code to zoom to a specific area:
<script type="text/javascript">
function init() {
OpenLayers.ProxyHost = "/ogcproxy?url=";
var li = "<?php echo $bo[0];?>"; //left
var un = "<?php echo $bo[1];?>"; //bottom
var re = "<?php echo $bo[2];?>"; // right
var ob = "<?php echo $bo[3];?>"; // top
var karte = new GeoAdmin.API();
karte.createMapPanel({
height: 500,
renderTo: "mymap"
});
karte.map.zoomToExtent(new OpenLayers.Bounds(li, un, re, ob));
}
</script>
it works on Opera, FF, IE9 , but Firefox Firebug gives me: bounds is Null,
IE8 shows the whole map, no zoom.
i don't understand, why there are bounds zoom an but i get this error back:
bounds is null
http://api.geo.admin.ch/1603111720/main/wsgi/build/api.js
Line 429
is it possible, that the api-script, that i can't influence, has an error,
or am i doing something wrong?
thanks for any answer
Eike
--
Eike Kreikenbaum
Rolandstrasse 3
8004 Zürich
0041 (0)77 428 31 60
-------------- next part --------------
Skipped content of type multipart/related
More information about the Users
mailing list