remove setDefaultCenterAndResolution

This commit is contained in:
Éric Lemoine
2012-07-17 17:20:29 +02:00
parent 41175a475f
commit b4fea2233e
2 changed files with 5 additions and 19 deletions

View File

@@ -25,6 +25,11 @@
});
map.getLayers().push(layer);
var maxResolution = layer.getStore().getResolutions()[0];
map.setCenter(new goog.math.Coordinate(0, 0));
map.setResolution(maxResolution);
</script>
</body>
</html>