feedsose.blogg.se

Kmz file reader
Kmz file reader













There are only a small number of features that the Maps API does not as yet support, for example, 3D buildings. The HERE Maps API supports import of KML files and data sets compliant with versions 2.1 and 2.2 of the KML standard. addEventListener ( 'tap', function ( ev ) ) addLayer (layer ) // KML objects receive regular map events, so add an event listener to the // KML layer: parse ( ) // Get KML layer from the reader object and add it to the map: Reader ( 'path/to/kml/file.kml' ), // Parse the document: Create reader object initializing it with a document: var reader = new H. All map objects receive regular map events (see Map Events) and can contain additional data, such as name and description (if such data is available in the KML document). The layer can be added directly to the map. Further, the class has a utility method that creates a map layer, using the parsed KML data. The Reader class in the data module loads KML from a file and parses it. To translate KML objects to map objects, use the data module in the Maps API ( mapsjs-data.js).

kmz file reader

Many KML objects have counterparts in the HERE Maps API for JavaScript. The KML specification supports a variety of objects, such as Placemarks, images and Polygons. For further information, see the KML page of the Open Geospatial Consortium. The most commonly used standard is KML which captures data in the XML format. Creating content on top of a map is time consuming, therefore, most developers use standards to help them transfer content between platforms seamlessly.















Kmz file reader