Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想平移和缩放OpenLayers.Map到给定的OpenLayer.Bounds.
OpenLayers.Map
OpenLayer.Bounds
执行此操作的快速方法是什么?
我想查看地图边界内的所有内容。
干杯!
请尝试OpenLayers.Map.zoomToExtent(OpenLayers.Bounds)它将缩放到传入的边界并重新定位地图。