HomePage RecentChanges ExtJS OpenLayers

OSDC 2009 Talk - coming soon.

Source Code

This code is taken from the GeoExt example "Feature Grid" - http://dev.geoext.org/trunk/geoext/examples/feature-grid.html

Data store

var store = new GeoExt.data.FeatureStore({
        layer: vecLayer,
        fields: [
            {name: 'name', type: 'string'},
            {name: 'elevation', type: 'float'}
        proxy: new GeoExt.data.ProtocolProxy({
            protocol: new OpenLayers.Protocol.HTTP({
                url: "data/summits.json",
                format: new OpenLayers.Format.GeoJSON()

A grid

var gridPanel = new Ext.grid.GridPanel({
    store: store,
    columns: [{
      header: "Name", width: 200, dataIndex: "name"
    }, {
      header: "Ele", width: 100, dataIndex: "elevation"

Openlayers Map

    var map = new OpenLayers.Map();
    var wmsLayer = new OpenLayers.Layer.WMS(
        {layers: 'basic'}
    var vecLayer = new OpenLayers.Layer.Vector("vector");
    map.addLayers([wmsLayer, vecLayer]);

A map

    mapPanel = new GeoExt.MapPanel({
        title: "Map",
        region: "center",
        height: 400,
        width: 600,
        map: map,
        center: new OpenLayers.LonLat(5, 45),
        zoom: 6

Join it together

    mainPanel = new Ext.Panel({
        renderTo: "mainpanel",
        layout: "border",
        height: 400,
        width: 920,
        items: [mapPanel, gridPanel]

Software error:

Can't locate object method "endform" via package "CGI" at /data/scott.dd.com.au/wiki/modules/search.pl line 15.

For help, please send mail to the webmaster (webmaster@dd.com.au), giving this error message and the time and date of the error.