OpenLayers.Control.ZoomPanel和滑块

OpenLayers.Control.ZoomPanel和滑块,openlayers,Openlayers,是否可以在OpenLayers.Control.ZoomPanel中创建滑块而不使用OpenLayers.Control.PanZoomBar 我的意思是在zoompanel中创建一个滑块。这是一个示例,您需要使其适应您的代码: map: map, extent: OpenLayers.Bounds.fromString("-81,-10,-76,-14", false).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjec

是否可以在
OpenLayers.Control.ZoomPanel
中创建滑块而不使用
OpenLayers.Control.PanZoomBar


我的意思是在zoompanel中创建一个滑块。

这是一个示例,您需要使其适应您的代码:

map: map,
extent: OpenLayers.Bounds.fromString("-81,-10,-76,-14", false).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject()),
items: [{
xtype: "gx_zoomslider",
aggressive: true,
vertical: true,
height: 100,
x: 10,
y: 20,
plugins: new GeoExt.ZoomSliderTip({
template: "Scale: 1 : {scale}<br>Resolution: {resolution}"
})
}],
map:map,
范围:OpenLayers.Bounds.fromString(“-81,-10,-76,-14”,false).transform(新OpenLayers.Projection(“EPSG:4326”),map.getProjectionObject()),
项目:[{
X类型:“gx_zoomslider”,
侵略性:是的,
是的,
身高:100,
x:10,
y:20,
插件:新的GeoExt.ZoomSliderTip({
模板:“比例:1:{Scale}
分辨率:{Resolution}” }) }],
希望这有帮助