VEDataType Enumeration
You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.
An enumeration of shape layer data types.
VEDataType ( GeoRSS VECollection ImportXML }
Members
Member | Description |
---|---|
GeoRSS |
This represents a GeoRSS data import. |
VECollection |
This represents a Bing Maps Collection (https://maps.live.com) import. |
ImportXML |
This represents an XML data import. |
Remarks
This enumeration represents the type of data to be imported into a shape layer as a VEShapeSourceSpecification Class object using the VEMap.ImportShapeLayerData Method.
Supported File Formats
GeoRSS
If the data type is VEDataType.GeoRSS, then the file specified in the VEShapeSourceSpecification.LayerSource Property must be a valid XML file. Additionally, the file must be in W3C, Simple, or GML format and contain at least one supported type.
The following types are supported:
geo:lat
geo:lon
geo:long
geo:point
geo:Point
Point
pos
posList
georss:point
georss:line
georss:polygon
georss:where
gml:Point
gml:pos
gml:posList
gml:LineString
gml:Polygon
gml:exterior
gml:interior
gml:LinearRing
VECollection
If the data type is VEDataType.VECollection, then the URL specified in the VEShapeSourceSpecification.LayerSource Property must be a valid Bing Maps (https://maps.live.com) collection GUID.
ImportXML
If the data type is VEDataType.ImportXML, then the file specified in the VEShapeSourceSpecification.LayerSource Property must be a valid XML file.
If the specified XML file is a KML file, the following KML elements are supported. These elements are case sensitive. Note that the supported elements may contain sub elements that are not supported. The sub elements refreshMode and refreshInterval are not supported.
Element Name | Notes |
---|---|
Placemark |
Required |
MultiGeometry |
Converts to multiple VEShape objects |
Polygon |
|
LineString |
|
LinearRing |
|
Point |
|
NetworkLink |
One level support only. Data is imported once when the VEMap.ImportShapeLayerData Method is called. |
Style |
Unsupported if the element contains a StyleUrl that points to a separate KML file |
Icon |
Unsupported if the element contains a StyleUrl that points to a separate KML file |
StyleUrl |
Unsupported if the specified URL is a separate KML file |
IconStyle |
Unsupported if the element contains a StyleUrl that points to a separate KML file |
LineStyle |
Unsupported if the element contains a StyleUrl that points to a separate KML file |
PolygonStyle |
Unsupported if the element contains a StyleUrl that points to a separate KML file |