|
Revision 7871, 1.0 kB
(checked in by crschmidt, 5 months ago)
|
GeoRSS fails on large line/poly nodes in FF. Use concatChildNodes to get all
the text into one string before parsing. Includes manual test. r=ahocevar.
(Closes #1614)
|
| Line | |
|---|
| 1 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 2 |
<head> |
|---|
| 3 |
<title>OpenLayers GML Layer Example</title> |
|---|
| 4 |
<link rel="stylesheet" href="../../theme/default/style.css" type="text/css" /> |
|---|
| 5 |
<link rel="stylesheet" href="../../examples/style.css" type="text/css" /> |
|---|
| 6 |
<script src="../../lib/OpenLayers.js"></script> |
|---|
| 7 |
<script type="text/javascript"> |
|---|
| 8 |
var lon = 5; |
|---|
| 9 |
var lat = 40; |
|---|
| 10 |
var zoom = 5; |
|---|
| 11 |
var map, layer; |
|---|
| 12 |
|
|---|
| 13 |
function init(){ |
|---|
| 14 |
map = new OpenLayers.Map('map'); |
|---|
| 15 |
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", |
|---|
| 16 |
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); |
|---|
| 17 |
map.addLayer(layer); |
|---|
| 18 |
map.zoomToExtent(new OpenLayers.Bounds(-94.617035,33.010025,-89.645401,36.492752)); |
|---|
| 19 |
map.addLayer(new OpenLayers.Layer.GML("GML", "arkansas.rss", {format: OpenLayers.Format.GeoRSS})); |
|---|
| 20 |
} |
|---|
| 21 |
</script> |
|---|
| 22 |
</head> |
|---|
| 23 |
<body onload="init()"> |
|---|
| 24 |
<p>Does this map look like arkansas?</p> |
|---|
| 25 |
<div id="map" class="smallmap"></div> |
|---|
| 26 |
</body> |
|---|
| 27 |
</html> |
|---|