GeoPrisma logo

ZoomSlider

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.

XML Sample

Sample configuration

<zoomslider>
  <name>W_MyZoomSlider</name>
  <options>
  </options>
</zoomslider>

drawWidget Sample

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
});

Mandatory Options

N/A

Optional Options

N/A

Service Type

N/A

Widget Action

read

Table Of Contents

Previous topic

VectorLayer

Next topic

Attribute Filter Panel

This Page