[OpenLayers-Trac] [OpenLayers] #1132: KML format doesn't write multi-part geometries
OpenLayers
trac at openlayers.org
Fri Nov 9 13:38:20 EST 2007
#1132: KML format doesn't write multi-part geometries
------------------------+---------------------------------------------------
Reporter: tschaub | Owner: tschaub
Type: bug | Status: new
Priority: minor | Milestone: 2.6 Release
Component: Format.KML | Version: 2.5
Keywords: |
------------------------+---------------------------------------------------
The KML format fails on writing multi-part geometries. This can be tested
by opening up any page that references the full OpenLayers lib, opening
firebug, and running the following:
{{{
var kml = new OpenLayers.Format.KML();
var multi = new OpenLayers.Geometry.MultiPoint([
new OpenLayers.Geometry.Point(1, 0)
]);
var feature = new OpenLayers.Feature.Vector(multi);
var str = kml.write(feature);
alert(str);
}}}
This fails in annoyingly silent ways. Patch to follow.
--
Ticket URL: <http://trac.openlayers.org/ticket/1132>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list