Home Reference Source
public class | source

Geojson

Extends:

Queueable → Geojson

Example:

//

Member Summary

Public Members
public

index: *

Method Summary

Public Methods
public

historyAdd(pid: number, json: object)

Add to the geojson history

public

historyCompare(pid: *, json: *)

public

historyInit(pid: number, json: object)

Init the geojson history

public

historyRevert(pid: *, json: *)

Private Methods
private

_compressGeojson(type: *, json: *): *

private

_makeHistoryIndex(json: *): *

We need to make a fast access index for history based on our 'index' element for use later to speed up access and prevent many searches

Inherited Summary

From class Queueable
public

queue: *

public
public

finished(pid: *, mode: *)

Call this method after you command has finished.

public

init(queue: *)

init, override this for any promise based inits setting the self.ready=true after the promise

public

set(pid: *, value: *)

public

start(pid: *, command: *, json: *)

Called from queue, starts running the actual command

Public Members

public index: * source

Public Methods

public historyAdd(pid: number, json: object) source

Add to the geojson history

Params:

NameTypeAttributeDescription
pid number

Process ID

json object

queue arguments

json.geojson string

starting geojson

json.type string

Type of entry

public historyCompare(pid: *, json: *) source

Params:

NameTypeAttributeDescription
pid *
json *

public historyInit(pid: number, json: object) source

Init the geojson history

Params:

NameTypeAttributeDescription
pid number

Process ID

json object

queue arguments

json.geojson string

starting geojson

public historyRevert(pid: *, json: *) source

Params:

NameTypeAttributeDescription
pid *
json *

Private Methods

private _compressGeojson(type: *, json: *): * source

Params:

NameTypeAttributeDescription
type *
json *

Return:

*

private _makeHistoryIndex(json: *): * source

We need to make a fast access index for history based on our 'index' element for use later to speed up access and prevent many searches

Params:

NameTypeAttributeDescription
json *

Return:

*