kmlwriter

0.7.4 • Public • Published

KML Writter

npm NPM

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

Eric Monné Mesalles

Letícia Vigna

Package Sidebar

Install

npm i kmlwriter

Weekly Downloads

9

Version

0.7.4

License

MIT

Unpacked Size

219 kB

Total Files

14

Last publish

Collaborators

  • crush128