new Feature(id, geojson)
Parameters:
Name | Type | Description |
---|---|---|
id |
string | id to feature |
geojson |
Object | geojson to feature |
- Source:
Extends
Members
-
<inner> impl :M.impl.Feature
-
Implementation of feature
Type:
- M.impl.Feature
- Source:
Methods
-
equals(feature)
-
This function return if two features are equals
Parameters:
Name Type Description feature
M.Feature - Source:
Returns:
returns the result of comparing two features
- Type
- bool
-
fire()
-
Sets the callback when the instace is loaded
- Inherited From:
- Source:
-
getAttribute(attribute)
-
This function returns the value of the indicated attribute
Parameters:
Name Type Description attribute
string Name attribute
- Source:
Returns:
returns the value of the indicated attribute
- Type
- string | number | object
-
getAttributes()
-
This function return attributes feature
- Source:
Returns:
attributes feature
- Type
- Object
-
getCentroid()
-
This function returns de centroid of feature
- Source:
Returns:
- Type
- M.Feature
-
getGeoJSON()
-
This function return geojson feature
- Source:
Returns:
geojson feature
- Type
- Object
-
getGeometry()
-
This function return geometry feature
- Source:
Returns:
Geometry feature
- Type
- object
-
getId()
-
This function return id feature
- Source:
Returns:
ID to feature
- Type
- string
-
getImpl()
-
This function provides the implementation
of the object- Inherited From:
- Source:
Returns:
- Type
- Object
-
getStyle()
-
This function returns style feature
- Source:
Returns:
returns the style feature
- Type
- M.style.Feature
-
on()
-
Sets the callback when the instace is loaded
- Inherited From:
- Source:
-
once()
-
Sets the callback when the instace is loaded
- Inherited From:
- Source:
-
setAttribute(attribute)
-
This function set value the value of the indicated attribute
Parameters:
Name Type Description attribute
string Name attribute
- Source:
Returns:
returns the value of the indicated attribute
- Type
- string | number | object
-
setAttributes(attributes)
-
This function set attributes feature
Parameters:
Name Type Description attributes
Object attributes to feature
- Source:
-
setGeometry(Geometry)
-
This function set geometry feature
Parameters:
Name Type Description Geometry
object feature
- Source:
-
setId(id)
-
This function set id
Parameters:
Name Type Description id
string ID to feature
- Source:
-
setImpl(impl)
-
This function set implementation of this control
Parameters:
Name Type Description impl
M.Map to add the plugin
- Inherited From:
- Source:
-
setStyle(style)
-
This function set style feature
Parameters:
Name Type Description style
M.style.Feature - Source:
-
un()
-
Sets the callback when the instace is loaded
- Inherited From:
- Source: