Geo Json Layer
Creates a new GeoJsonLayer object. Default styles are applied to the GeoJsonFeature objects. addLayerToMap() must be called to trigger rendering onto a map. Use this constructor with shared object managers in order to handle multiple layers with their own event handlers on the map.
Parameters
map where the layer is to be rendered
GeoJSON data to add to the layer
marker manager to create marker collection from
polygon manager to create polygon collection from
polyline manager to create polyline collection from
ground overlay manager to create ground overlay collection from
Creates a new GeoJsonLayer object. Default styles are applied to the GeoJsonFeature objects. addLayerToMap() must be called to trigger rendering onto a map. Use this constructor with shared object managers in order to handle multiple layers with their own event handlers on the map.
Parameters
map where the layer is to be rendered
GeoJSON file to add to the layer
context of the application, required to open the GeoJSON file
marker manager to create marker collection from
polygon manager to create polygon collection from
polyline manager to create polyline collection from
ground overlay manager to create ground overlay collection from
Throws
if the file cannot be open for read
if the JSON file has invalid syntax and cannot be parsed successfully
Creates a new GeoJsonLayer object. Default styles are applied to the GeoJsonFeature objects. addLayerToMap() must be called to trigger rendering onto a map.
Parameters
map where the layer is to be rendered
GeoJSON data to add to the layer
Creates a new GeoJsonLayer object. Default styles are applied to the GeoJsonFeature objects. addLayerToMap() must be called to trigger rendering onto a map.
Parameters
map where the layer is to be rendered
GeoJSON file to add to the layer
context of the application, required to open the GeoJSON file
Throws
if the file cannot be open for read
if the JSON file has invalid syntax and cannot be parsed successfully