Class: IWGeoJSONStyle

IWGeoJSONStyle

Base class for GeoJSON styles. Overwrite the functions in this class for individual styles depending on the features.

new IWGeoJSONStyle()

Methods


getPointLayer(map, feature)

Returns a clustered overlay layer for all point features.
Parameters:
Name Type Description
map IWMap the map
feature object the feature to show
Returns:
the layer
Type
IWClusteredOverlayLayer

getPolygonStyle(map, feature)

Returns an object with style properties for a polygon feature.
Parameters:
Name Type Description
map IWMap the map
feature object the feature to show
Returns:
an object with the style properties
Type
object

getPolylineStyle(map, feature)

Returns an object with style properties for a polyline feature.
Parameters:
Name Type Description
map IWMap the map
feature object the feature to show
Returns:
an object with the style properties
Type
object