Protected
disposedThe object has already been disposed.
Protected
renderedProtected
applyProtected
Apply any properties from another object without triggering events.
The source object.
Protected
createDispatches an event and calls all listeners listening for events
of this type. The event parameter can either be a string or an
Object with a type
property.
Event object.
false
if anyone called preventDefault on the
event object or if any of the listeners returned false.
Protected
disposeAbstract
getAbstract
getGet the list of meridians. Meridians are lines of equal longitude.
The meridians.
Get the list of parallels. Parallels are lines of equal latitude.
The parallels.
Abstract
getProtected
onceProtected
onIn charge to manage the rendering of the layer. One layer type is bounded with one layer renderer.
Frame state.
Target which the renderer may (but need not) use for rendering its content.
The rendered element.
Sets the layer to be rendered on top of other layers on a map. The map will
not manage this layer in its layers collection. This
is useful for temporary layers. To remove an unmanaged layer from the map,
use #setMap(null)
.
To add the layer to a map and have it managed by the map, use module:ol/Map~Map#addLayer instead.
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Values.
Optional
silent: booleanUpdate without triggering an event.
Set the style for features. This can be a single style object, an array
of styles, or a function that takes a feature and resolution and returns
an array of styles. If set to null
, the layer has no style (a null
style),
so only features that have their own styles will be rendered in the layer. Call
setStyle()
without arguments to reset to the default style. See
[the ol/style/Style module]module:ol/style/Style~Style for information on the default style.
If your layer has a static style, you can use [flat style]module:ol/style/flat~FlatStyle object
literals instead of using the Style
and symbolizer constructors (Fill
, Stroke
, etc.):
vectorLayer.setStyle({
"fill-color": "yellow",
"stroke-color": "black",
"stroke-width": 4
})
Optional
style: null | StyleLike | FlatStyleLikeLayer style.
Protected
un
Classdesc
Layer that renders a grid for a coordinate system (currently only EPSG:4326 is supported). Note that the view projection must define both extent and worldExtent.
Fires
import("../render/Event.js").RenderEvent
Api