ui/locations/entries/pin

The pin entry module exports the pin method as mapp.ui.locations.entries.pin()

Dictionary entries:

  • pin

Requires

Methods

(inner) getExtent(entry) → {Array}

Calculates the extent of the pin. Applies a buffer if one has been supplied to the pin.

Parameters:
NameTypeDescription
entryinfoj-entry

type:pin entry.

Properties
NameTypeAttributesDescription
entry.bufferboolean | number<optional>

a value to buffer the pin with or just true for a default of 200.

Returns:

Array representing Openlayers extent.

Type: 
Array

(inner) hide()

Sets the display property to false and calls the remove method.

(inner) pin(entry) → {HTMLElement}

Places a pin on the selected location on the map. A checkbox is supplied to turn the pin on and off.

The pin will be styled by the entry.style property if provided. Otherwise the location.pinStyle assigned by the locations listview method will be used. A location may not have a pinStyle if no listview has been configured for the mapview.

Parameters:
NameTypeDescription
entryinfoj-entry

type:pin entry.

Properties
NameTypeAttributesDefaultDescription
entry.locationlocation

The entry location.

entry.valuearray

An array containing entrys' co-ordinates.

entry.labelstring<optional>

Label for checkbox element.

entry.displayboolean<optional>
true

The pin display flag.

entry.sridstring<optional>

The srid of the pin.

entry.zIndexinteger<optional>

The html layer on which the pin should display.

entry.styleobject<optional>

Style properties of the pin which may include a scale.

Returns:

Location pin and display checkbox.

Type: 
HTMLElement

(inner) show()

Calls removeLayer method to remove layer from location before creating a new Openlayers layer which is pushed into the location.Layers array property.