new ol.source.OSMXML(opt_options) experimental
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Fires:
-
addfeature
(ol.source.VectorEvent) - Triggered when a feature is added to the source. -
change
experimental - Triggered when the state of the source changes. -
removefeature
(ol.source.VectorEvent) - Triggered when a feature is removed from the source.
Extends
Methods
-
addFeature(feature) inherited
-
Name Type Description feature
ol.Feature Feature.
-
addFeatures(features) inherited
-
Name Type Description features
Array.<ol.Feature> Features.
-
Remove all features.
-
dispatchChangeEvent() inherited experimental
-
Dispatches a
change
event.Fires:
-
change
experimental
-
-
forEachFeature(f, opt_this){S|undefined} inherited
-
Name Type Description f
function Callback.
this
T The object to use as
this
inf
. -
forEachFeatureInExtent(extent, f, opt_this){S|undefined} inherited experimental
-
Name Type Description extent
ol.Extent Extent.
f
function Callback.
this
T The object to use as
this
inf
. -
getAttributions(){Array.<ol.Attribution>} inherited
-
Returns:
Attributions.
-
getClosestFeatureToCoordinate(coordinate){ol.Feature} inherited
-
Name Type Description coordinate
ol.Coordinate Coordinate.
Returns:
Closest feature.
-
Get the extent of the features currently in the source.
Returns:
Extent.
-
getFeatureById(id){ol.Feature} inherited
-
Get a feature by its identifier (the value returned by feature.getId()). Note that the index treats string and numeric identifiers as the same. So
source.getFeatureById(2)
will return a feature with id'2'
or2
.Name Type Description id
string | number Feature identifier.
Returns:
The feature (ornull
if not found).
-
getFeatures(){Array.<ol.Feature>} inherited
-
Returns:
Features.
-
getFeaturesAtCoordinate(coordinate){Array.<ol.Feature>} inherited
-
Name Type Description coordinate
ol.Coordinate Coordinate.
Returns:
Features.
-
getLogo(){string|olx.LogoOptions|undefined} inherited
-
Returns:
Logo.
-
getProjection(){ol.proj.Projection} inherited experimental
-
Returns:
Projection.
-
getRevision(){number} inherited experimental
-
Returns:
Revision.
-
getState(){ol.source.State} inherited experimental
-
Returns:
State.
-
on(type, listener, opt_this){goog.events.Key} inherited
-
Listen for a certain type of event.
Name Type Description type
string | Array.<string> The event type or array of event types.
listener
function The listener function.
this
Object The object to use as
this
inlistener
.Returns:
Unique key for the listener.
-
once(type, listener, opt_this){goog.events.Key} inherited
-
Listen once for a certain type of event.
Name Type Description type
string | Array.<string> The event type or array of event types.
listener
function The listener function.
this
Object The object to use as
this
inlistener
.Returns:
Unique key for the listener.
-
readFeatures(source){Array.<ol.Feature>} inherited experimental
-
Name Type Description source
ArrayBuffer | Document | Node | Object | string Source.
Returns:
Features.
-
removeFeature(feature) inherited
-
Name Type Description feature
ol.Feature Feature.
-
un(type, listener, opt_this) inherited
-
Unlisten for a certain type of event.
Name Type Description type
string | Array.<string> The event type or array of event types.
listener
function The listener function.
this
Object The object which was used as
this
by thelistener
. -
unByKey(key) inherited
-
Removes an event listener using the key returned by
on()
oronce()
.Name Type Description key
goog.events.Key Key.