remove setDefaultCenterAndResolution
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user