Replaces the OpenLayers zoom slider control by the GeoExt ZoomSlider widget by using a Slider from ExtJS and some .css replacement.
Note
Must be applied as an item of a GeoExt.MapPanel with layout:’anchor’.
Note
This widget must appear only once.
Sample configuration
<zoomslider>
<name>W_MyZoomSlider</name>
<options>
</options>
</zoomslider>
The widget can be drawn with the drawWidget function but directly in a GeoExt.MapPanel object. Here’s an example of use :
oMyMapPanel = new GeoExt.MapPanel ({
id: 'gpDefaultMap',
title: 'Map',
layout: 'anchor', // (Mandatory)
region: 'center',
border: false,
height: 800,
width: 800,
<xsl:if test="count(/geoprisma/widgets/widget[./type = 'zoomslider']) > 0 ">
items: [
<xsl:for-each select="/geoprisma/widgets/widget[./type = 'zoomslider']">
<xsl:call-template name="zoomslider:drawWidget">
<xsl:with-param name="pWidgetName" select="./name" />
</xsl:call-template>
</xsl:for-each>
],
</xsl:if>
map: oMap
});
N/A
N/A
N/A
read