demo

Flickr feed

Using http://openlayers.org/dev/examples/xml/georss-flickr.xml as a GeoRSS feed containing photos.
Adapted from the example at http://openlayers.org/dev/examples/georss-flickr.html.

0o0'0"E - 0o0'0"N

TMS layer example

The format to specify tms layers is tms|url[,more-urls]|title|options; currently only the attribution option is supported. Also, only OpenStreetMap like layers can be used.
The map at the bottom, using an OpenCycleMap layer, is defined as follows:

[map layers="1" 1="tms|http://a.andy.sandbox.cloudmade.com/tiles/cycle/|OSM Cycle Map|attribution=<b>Cycle Map</b>" center="5,52" zoom="10" maxextent="-10,30,30,70" /]

WFS layer with timeline

A map can be integrated with the simile timeline control since version 6.x-1.5 of the mapping kit. The date fields of a WFS layer can be displayed as events on the timeline. The bands of the timeline are configurable.
But a good example dataset is still missing ...

[map baselayers="osm" controls="timeline" timeline="height=150,bands={day:50,week:30,year:20},firstband={numUnits:7}" /]

For the bands, you can choose interval units like: "MILLISECOND", "SECOND", "MINUTE", "HOUR", "DAY", "WEEK", "MONTH", "YEAR", "DECADE", "CENTURY", "MILLENNIUM", "EPOCH", and "ERA". The number following the interval unit represents the percentage of the total height.

0o0'0"E - 0o0'0"N

WFS layer with unique values renderer

The following map shows a WFS layer as in the example at http://openlayers.org/dev/examples/wfs-reprojection.html. When you want to define a unique values renderer for a WFS layer, you need to define 3 extra parameters: styleMap, uniqueValueProperty, and uniqueValueFillColor. This renderer is available in the mapping kit since version 6.x-1.5.

[map zoom="4" controls="default,statusbar,layerswitcher" baselayers="osm" layers="1" 1="wfs|http://sigma.openplans.org/geoserver/ows|States|topp:states|extract=true,styleMap={strokeColor:black,strokeWidth:2,strokeOpacity:0.5,fillOpacity:0.5},uniqueValueProperty=STATE_FIPS,uniqueValueFillColor={01:red,02:green,03:blue,04:brown,05:grey,06:yellow,07:magenta}" center="-103,41" /]

Note that only a few (Southern) states are rendered with this limited definition.

0o0'0"E - 0o0'0"N

Zoom to locations

    The left map has a list of zoom locations below it.

    Overview maps

    A basic overview map can be defined by including "overview" in the controls parameter. The overview is opened by clicking the (+) button at the right side of the map. The overview map moves and interacts with the main map. See also the OpenLayers example at http://openlayers.org/dev/examples/overviewmap.html and the documentation at http://trac.openlayers.org/wiki/Control/OverviewMap.

    [map layers="1" 1="wms|http://labs.metacarta.com/wms/vmap0|OpenLayers WMS|basic" controls="overview" maxextent="-180,-90,180,90" projection="EPSG:4326" /]

    Inline maps

    This example shows how maps can be shown inline, with text flowing around the maps.

    KML layer example

    Demonstrates loading and displaying a KML file on top of OpenStreetMap (OSM) data. This is similar to the example at http://openlayers.org/dev/examples/sundials-osm.html.

    Google Street View and Virtual Earth

    The right button of the toolbar will open or close a popup that displays Google Street View and Virtual Earth for the current center of the map. It functions similarly to the example at the Geospatial Portal.

    The following map is defined as
    [map baselayers="google,ve" center="2.29526,48.87327" zoom="15" streetview="views=google+ve,width=400,height=400"/]. The streetview parameter adds the button to the toolbar and the popup.

    2o17'42.936"E - 48o52'23.772"N
    Syndicate content