OptionaladvancedOptionalbaseBase layers for the map.
OptionalcenterCenter coordinates for the map.
OptionalextentInitial extent (don't mix with center / zoom).
OptionalfetchOverrides fetching of network resources (such as service capabilities).
OptionallayersLayers used by the map.
OptionalmapID of the map. Defaults to "test".
OptionalmockIf true, the map is rendered in a dummy div instead of the real OpenLayers canvas. This is useful for tests that need the map's view to be initialized, but don't need to actually render the map.
False by default.
OptionalnoDisables the initial view when set to true.
OptionalnoDisables the default projection when set to true.
OptionalprojectionThe map's projection.
OptionalreturnAlso returns the map object in the return value. True by default.
Use false to test the async loading behavior of the registry.
OptionalshowOptionaltopmostLayers that are displayed on top of all other layers.
OptionalzoomZoom level of the map.
Passed to the open layers map constructor.