GeoXml Class

Bing
 

This class exposes static methods for reading and writing geospatial XML data.

NameReturn TypeDescription
read(xml: string or ArrayBuffer, options: GeoXmlReadOptions)GeoXmlDataSetTakes a geospatial XML string or a ArrayBuffer and parses the XML data into Bing Maps shapes.
readFromUrl(urlString: string, options: GeoXmlReadOptions, callback: (data: GeoXmlDataSet) => void)Takes an URL to an XML or zipped XML file and parses the XML data into Bing Maps shapes.
write(shapes: Map or (IPrimitive or IPrimitive[] or Layer or GroundOverlay)[] or GeoXmlDataSet, options?: GeoXmlWriteOptions)Writes Bing Maps shape data as a geospatial XML string in the specified format.
writeCompressed(shapes: Map or (IPrimitive or IPrimitive[] or Layer or GroundOverlay)[] or GeoXmlDataSet, compressFormat?: GeoXmlCompressedFormat, options?: GeoXmlWriteOptions)string or ArrayBuffer or BlobWrites Bing Maps shape data to a geospatial XML file embedded in a compressed file.
Show: