Property map is a LeafletMap
Clear all the graphics from all of the buckets.
Clear all the graphics from all of the buckets.
Clear all the graphics from all of the buckets.
Put a feature or geometry on the map.
[[Core.Disposible]] that removes the feature or geometry from the map.
Put a feature or geometry on the map.
[[Core.Disposible]] that removes the feature or geometry from the map.
Put a feature or geometry on the map.
[[Core.Disposible]] that removes the feature or geometry from the map.
Clear all the graphics from all of the buckets.
Clear all the graphics from all of the buckets.
Clear all the graphics from all of the buckets.
Clear all the graphics from the specified bucket.
string
Clear all the graphics from the specified bucket.
string
Clear all the graphics from the specified bucket.
string
convert to hex
string
convert to hex
string
convert to hex
string
string
the new id
string
the new id
string
the new id
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
The LeafletGraphicProvider class is an implementation of GraphicProvider. This provider has several static functions for storing and retrieving MapGraphic in 'buckets'.
var map = new LeafletMap();
map.create("map", { initialXMin: -88.679196, initialYMin: 24.326418, initialXMax: -79.57153, initialYMax: 30.892178 });
var geoJSON = { type: "Feature", geometry: { type: 'LineString', coordinates: [[-82.441, 29.200], [-82.441, 29.535]] }, properties: { } };
var mGraphic = { id: '1', feature: geoJSON, shape: 'LineString' };
var cb = map.addGraphic(mGraphic);
mGraphic.id=cb.id;
mGraphic.dispose=cb.dispose;
LeafletGraphicProvider.registerGraphic(mGraphic, "default");