kmlwriter
v0.7.4
Published
Npm package to write and edit kmls
Downloads
13
Readme
KML Writter
Introduction
KML writing javascript librari
Dependences
Installation
$ npm i kmlwriter
Functions
KML operations
Start a kml
Generate a new KML file:
Will start the kml object. We can define a name for the kml, if we don't define it, will saved as kml by default.
kml = new kmlWriter()
kml.startKml(name = 'kml')
Placemark operations
Generate a Placemark
addPlacemark(id,name,lon,lat,range, altMode = 'relativeToGround', description = '', icon= '' )
edit the coordinates of a Placemark
editCoodPlacemark(id, lon, lat, range)
Tour Operations
Create a Tour
kmlWriter.createTour(ID, name,description))
Generate KML file
The generete KML function will use the name of the kml defined when the kml is started.
kmlWriter.saveKML('path/to/file')
Create a NetworkLink
the functions needs a id, to set it into the tag, and the ip or link to our server.
kml.networkLink(id, link, fly = 0, visibility = 1 )
Find errors:
in editCoodPlacemark if didn't find the index crush.
Colaborators:
Renato Fernandes
- GitLab account: @renatoaurefer
Eric Monné Mesalles
- GitLab account: @xemyst
Letícia Vigna
- GitLab account @letvigna