update example to show gml read/write
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4209 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -76,7 +76,9 @@
|
|||||||
|
|
||||||
formats = {
|
formats = {
|
||||||
wkt: new OpenLayers.Format.WKT(),
|
wkt: new OpenLayers.Format.WKT(),
|
||||||
geojson: new OpenLayers.Format.GeoJSON()
|
geojson: new OpenLayers.Format.GeoJSON(),
|
||||||
|
gml: new OpenLayers.Format.GML() //,
|
||||||
|
//kml: new OpenLayers.Format.KML()
|
||||||
};
|
};
|
||||||
|
|
||||||
map.setCenter(new OpenLayers.LonLat(0, 0), 1);
|
map.setCenter(new OpenLayers.LonLat(0, 0), 1);
|
||||||
@@ -144,6 +146,8 @@
|
|||||||
<label for="formatType">Format</label>
|
<label for="formatType">Format</label>
|
||||||
<select name="formatType" id="formatType">
|
<select name="formatType" id="formatType">
|
||||||
<option value="geojson" selected="selected">GeoJSON</option>
|
<option value="geojson" selected="selected">GeoJSON</option>
|
||||||
|
<!--<option value="kml">KML</option>-->
|
||||||
|
<option value="gml">GML</option>
|
||||||
<option value="wkt">Well-Known Text (WKT)</option>
|
<option value="wkt">Well-Known Text (WKT)</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user