add_features: Add vector layer to the map

Description Usage Arguments

Description

This function is just a shorthand to add_geojson using geojsonio to convert any data object to geojson. Therefore, if the library/namespace is not available, an error is thrown.

Usage

1
2
3

Arguments

ol

map widget

data

any data object which can be parsed to geojson by geojson_json

...

optional parameters passed to add_geojson


crazycapivara/openlayers documentation built on June 4, 2019, 8:08 p.m.