|
Revision 238, 1.3 kB
(checked in by ahocevar, 1 year ago)
|
Added MapPanel, LayerRecord and LayerStore with examples and tests; also contains license.txt file. Big thanks to sbenthall and tcoulter for their original input, to elemoine for the good discussion today about the LayerStoreMixin and his patience despite my angryness, to tschaub for the constructive comments, and finally to everyone who participated in the discussions on the mailing list about what we want this component to be. r=elemoine,tschaub (closes #4)
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id Revision
|
| Line | |
|---|
| 1 |
<html> |
|---|
| 2 |
<head> |
|---|
| 3 |
<link rel="stylesheet" type="text/css" href="../../../ext/2.2.1/resources/css/ext-all.css"></link> |
|---|
| 4 |
<script type="text/javascript" src="../../../openlayers/lib/OpenLayers.js"></script> |
|---|
| 5 |
<script type="text/javascript" src="../../../ext/2.2.1/adapter/ext/ext-base.js"></script> |
|---|
| 6 |
<script type="text/javascript" src="../../../ext/2.2.1/ext-all-debug.js"></script> |
|---|
| 7 |
<script type="text/javascript" src="../lib/GeoExt.js"></script> |
|---|
| 8 |
|
|---|
| 9 |
<script type="text/javascript"> |
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
var mapPanel; |
|---|
| 15 |
|
|---|
| 16 |
Ext.onReady(function() { |
|---|
| 17 |
new Ext.Window({ |
|---|
| 18 |
title: "GeoExt MapPanel Window", |
|---|
| 19 |
height: 400, |
|---|
| 20 |
width: 600, |
|---|
| 21 |
layout: "fit", |
|---|
| 22 |
items: [{ |
|---|
| 23 |
xtype: "gx_mappanel", |
|---|
| 24 |
id: "mappanel", |
|---|
| 25 |
layers: [new OpenLayers.Layer.WMS( |
|---|
| 26 |
"bluemarble", |
|---|
| 27 |
"http://sigma.openplans.org/geoserver/wms?", |
|---|
| 28 |
{layers: 'bluemarble'} |
|---|
| 29 |
)], |
|---|
| 30 |
extent: "-5,35,15,55" |
|---|
| 31 |
}] |
|---|
| 32 |
}).show(); |
|---|
| 33 |
|
|---|
| 34 |
mapPanel = Ext.getCmp("mappanel"); |
|---|
| 35 |
}); |
|---|
| 36 |
|
|---|
| 37 |
</script> |
|---|
| 38 |
</head> |
|---|
| 39 |
<body> |
|---|
| 40 |
</body> |
|---|
| 41 |
</html> |
|---|