# Class: OlMap

## bemap.OlMap(context, target)

Base class for OpenLayers.

## Constructor

#### new OlMap(context, target)

##### Parameters:

Name | Type | Description
--- | --- | ---
`context` | bemap.Context | BeMap-JS-API Context.
`target` | string | HTML element.
`options.` |  |

Source:
  - bemap-ol/bemap-map-ol.js, line 17

### Extends

- bemap.Map

### Members

#### (protected) callback

Inherited From:
  - bemap.Map#callback
Source:
  - bemap-map.js, line 43

#### (protected) ctx

Inherited From:
  - bemap.Map#ctx
Source:
  - bemap-map.js, line 18

#### (protected) events

Inherited From:
  - bemap.Map#events
Source:
  - bemap-map.js, line 33

#### (protected) layers

Inherited From:
  - bemap.Map#layers
Source:
  - bemap-map.js, line 28

#### (protected) native

Overrides:
  - bemap.Map#native
Source:
  - bemap-map.js, line 23

#### (protected) target

Source:
  - bemap-ol/bemap-map-ol.js, line 21

### Methods

#### (protected) _addOwnToProperties(bemapObject)

Sotre the bemap object into the native OpenLayers properties.

##### Parameters:

Name | Type | Description
--- | --- | ---
`bemapObject` | Object | a bemap object like bemap.marker, bemap.multimarker or bemap.polyline.

Source:
  - bemap-ol/bemap-map-ol.js, line 56

#### (protected) _checkModeOfEvent(mode, bemapObject, declaredObj) → {function}

Check the event mode.

##### Parameters:

Name | Type | Description
--- | --- | ---
`mode` | object | enable modes.
`bemapObject` | object | bemap object like bemap.Marker, bemap.Polyline, etc.
`declaredObj` | object | bemap object like bemap.Marker, bemap.Polyline, etc.

Source:
  - bemap-ol/bemap-map-ol.js, line 593

##### Returns:

Type
  function

#### (protected) _draggableFeature(declaredObj, callback, options, mode) → {bemap.Listener}

Define the draggable capability for bemap object (like bemap.Marker, bemap.MultiMarker, bemap.Polyline, etc.).

##### Parameters:

Name | Type | Description
--- | --- | ---
`declaredObj` | Object | bemap object like bemap.Marker, bemap.MultiMarker, bemap.Polyline, etc.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.
`mode` | object | Mode of slection feature.

Source:
  - bemap-ol/bemap-map-ol.js, line 783

##### Returns:

Listener.

Type
  bemap.Listener

#### (protected) _fromLonLat(lon, lat)

##### Parameters:

Name | Type | Description
--- | --- | ---
`lon` | double | Longitude in degres decimal (WGS84).
`lat` | double | Latitude in degres decimal (WGS84).

Source:
  - bemap-ol/bemap-map-ol.js, line 83

#### (protected) _fromNativeToLonLat(coordinate) → {array}

##### Parameters:

Name | Type | Description
--- | --- | ---
`coordinate` | array | Array contains the longitude and latitude in format of OpenLayers Map object.

Source:
  - bemap-ol/bemap-map-ol.js, line 92

##### Returns:

Array contains the longitude and latitude in degres decimal (WGS84).

Type
  array

#### (protected) _getOwnFromProperties(olObject) → {Object}

Get the bemap object from the native OpenLayers properties.

##### Parameters:

Name | Type | Description
--- | --- | ---
`olObject` | Object | native Openlayers object like ol.Feature.

Source:
  - bemap-ol/bemap-map-ol.js, line 68

##### Returns:

a bemap object like bemap.marker, bemap.multimarker or bemap.polyline.

Type
  Object

#### (protected) _onFeature(marker, eventType, callback, options, mode) → {bemap.Listener}

Set the listner when a specified eventType occur on OpenLayers Feature object.

##### Parameters:

Name | Type | Description
--- | --- | ---
`marker` | bemap.Marker |
`eventType` | bemap.Map.EventType | Event type.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | options.
`mode` | object | Mode of slection feature.

Source:
  - bemap-ol/bemap-map-ol.js, line 624

##### Returns:

listener.

Type
  bemap.Listener

#### addCircle(options) → {bemap.OlMap}

Add a bemap.Circle to the layer

##### Parameters:

Name | Type | Description
--- | --- | ---
`bemap.Circle.` | bemap.Circle |
`options` | object |

Source:
  - bemap-ol/bemap-map-ol-circle.js, line 8

##### Returns:

Type
  bemap.OlMap

#### addLayer(layer, options) → {bemap.OlMap}

Add a layer to the OpenLayers map.

##### Parameters:

Name | Type | Description
--- | --- | ---
`layer` | bemap.Layer |
`options` | object |

Overrides:
  - bemap.Map#addLayer
Source:
  - bemap-ol/bemap-map-ol.js, line 104

##### Returns:

this

Type
  bemap.OlMap

#### addMarker(marker, options) → {bemap.OlMap}

Add a marker to the layer

##### Parameters:

Name | Type | Description
--- | --- | ---
`marker` | bemap.Marker |
`options` | object |

Overrides:
  - bemap.Map#addMarker
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 8

##### Returns:

this

Type
  bemap.OlMap

#### addMultiMarker(multimarker, options) → {bemap.OlMap}

Add a multimarker to the layer

##### Parameters:

Name | Type | Description
--- | --- | ---
`multimarker` | bemap.Marker |
`options` | object |

Overrides:
  - bemap.Map#addMultiMarker
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 159

##### Returns:

this

Type
  bemap.OlMap

#### addPolygon(options) → {bemap.OlMap}

Add a bemap.Polygon to the layer

##### Parameters:

Name | Type | Description
--- | --- | ---
`bemap.Polygon.` | bemap.Polygon |
`options` | object |

Source:
  - bemap-ol/bemap-map-ol-polygon.js, line 8

##### Returns:

Type
  bemap.OlMap

#### addPolyline(options) → {bemap.OlMap}

Add a bemap.Polyline to the layer

##### Parameters:

Name | Type | Description
--- | --- | ---
`bemap.Polyline.` | bemap.Polyline |
`options` | object |

Overrides:
  - bemap.Map#addPolyline
Source:
  - bemap-ol/bemap-map-ol-polyline.js, line 8

##### Returns:

Type
  bemap.OlMap

#### addPopup(popup, options) → {bemap.OlMap}

Add a popup to the map

##### Parameters:

Name | Type | Description
--- | --- | ---
`popup` | bemap.Popup |
`options` | object |

Overrides:
  - bemap.Map#addPopup
Source:
  - bemap-ol/bemap-map-ol-popup.js, line 8

##### Returns:

this

Type
  bemap.OlMap

#### backgroundLayers(geoservers) → {bemap.Map}

Create a background layer for each geoserver name.

##### Parameters:

Name | Type | Description
--- | --- | ---
`geoservers` | array | List of geoserver name.

Inherited From:
  - bemap.Map#backgroundLayers
Source:
  - bemap-map.js, line 167

##### Returns:

this

Type
  bemap.Map

#### buildCircleStyle(circleStyle, options) → {bemap.OlMap}

Build circleStyle resource.

##### Parameters:

Name | Type | Description
--- | --- | ---
`circleStyle` | bemap.CircleStyle |
`options` | object |

Source:
  - bemap-ol/bemap-map-ol.js, line 511

##### Returns:

this

Type
  bemap.OlMap

#### buildIcon(icon, options) → {bemap.OlMap}

Build icon resource.

##### Parameters:

Name | Type | Description
--- | --- | ---
`icon` | bemap.Icon |
`options` | object |

Overrides:
  - bemap.Map#buildIcon
Source:
  - bemap-ol/bemap-map-ol.js, line 413

##### Returns:

this

Type
  bemap.OlMap

#### buildLineStyle(lineStyle, options) → {bemap.OlMap}

Build lineStyle resource.

##### Parameters:

Name | Type | Description
--- | --- | ---
`lineStyle` | bemap.LineStyle |
`options` | object |

Overrides:
  - bemap.Map#buildLineStyle
Source:
  - bemap-ol/bemap-map-ol.js, line 466

##### Returns:

this

Type
  bemap.OlMap

#### buildPolygonStyle(polygonStyle, options) → {bemap.OlMap}

Build polygonStyle resource.

##### Parameters:

Name | Type | Description
--- | --- | ---
`polygonStyle` | bemap.PolygonStyle |
`options` | object |

Source:
  - bemap-ol/bemap-map-ol.js, line 486

##### Returns:

this

Type
  bemap.OlMap

#### buildTextStyle(text, name, options) → {bemap.OlMap}

Build text style resource.

##### Parameters:

Name | Type | Description
--- | --- | ---
`text` | bemap.TextStyle | style object.
`name` | String | Name (label) of marker.
`options` | object |

Source:
  - bemap-ol/bemap-map-ol.js, line 435

##### Returns:

this

Type
  bemap.OlMap

#### clearLayer(layer) → {bemap.OlMap}

Remove all objects from a layer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`layer` | bemap.Layer | the layer object to clear.

Overrides:
  - bemap.Map#clearLayer
Source:
  - bemap-ol/bemap-map-ol.js, line 548

##### Returns:

this

Type
  bemap.OlMap

#### clearPopup() → {bemap.OlMap}

Remove all the popups from the map.

Overrides:
  - bemap.Map#clearPopup
Source:
  - bemap-ol/bemap-map-ol-popup.js, line 103

##### Returns:

this;

Type
  bemap.OlMap

#### defaultLayers(options) → {bemap.Map}

Add default layers.

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | object | ###### Properties
Name | Type | Description
--- | --- | ---
`markerAsCluster` | boolean |

Inherited From:
  - bemap.Map#defaultLayers
Source:
  - bemap-map.js, line 109

##### Returns:

this

Type
  bemap.Map

#### defaultOverlayLayers(options) → {bemap.Map}

Add default overlay layers, like dedicated for markers or polyline, etc.

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | object | ###### Properties
Name | Type | Description
--- | --- | ---
`markerAsCluster` | boolean |

Inherited From:
  - bemap.Map#defaultOverlayLayers
Source:
  - bemap-map.js, line 129

##### Returns:

this

Type
  bemap.Map

#### (protected) draggableCircle(circle, callback, options) → {bemap.Listener}

Define the draggable capability for bemap.Circle.

##### Parameters:

Name | Type | Description
--- | --- | ---
`circle` | bemap.Circle | bemap object.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.

Source:
  - bemap-ol/bemap-map-ol-circle.js, line 119

##### Returns:

bemap.listener.

Type
  bemap.Listener

#### (protected) draggableCircles(callback, options) → {bemap.Listener}

Define the draggable capability for all bemap.Circle.

##### Parameters:

Name | Type | Description
--- | --- | ---
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.

Source:
  - bemap-ol/bemap-map-ol-circle.js, line 133

##### Returns:

bemap.listener.

Type
  bemap.Listener

#### (protected) draggableMarker(marker, callback, options) → {bemap.Listener}

Define the draggable capability for bemap.Marker.

##### Parameters:

Name | Type | Description
--- | --- | ---
`marker` | bemap.Marker | bemap object.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.

Overrides:
  - bemap.Map#draggableMarker
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 132

##### Returns:

bemap.listener.

Type
  bemap.Listener

#### (protected) draggableMarkers(callback, options) → {bemap.Listener}

Define the draggable capability for all bemap.Marker.

##### Parameters:

Name | Type | Description
--- | --- | ---
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.

Overrides:
  - bemap.Map#draggableMarkers
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 146

##### Returns:

bemap.listener.

Type
  bemap.Listener

#### (protected) draggableMultiMarkers(callback, options) → {bemap.Listener}

Define the draggable capability for all bemap.MultiMarkers.

##### Parameters:

Name | Type | Description
--- | --- | ---
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.

Overrides:
  - bemap.Map#draggableMultiMarkers
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 267

##### Returns:

bemap.listener.

Type
  bemap.Listener

#### (protected) draggablePolygon(polygon, callback, options) → {bemap.Listener}

Define the draggable capability for bemap.Polygon.

##### Parameters:

Name | Type | Description
--- | --- | ---
`polygon` | bemap.Polygon | bemap object.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.

Source:
  - bemap-ol/bemap-map-ol-polygon.js, line 109

##### Returns:

bemap.listener.

Type
  bemap.Listener

#### (protected) draggablePolygons(callback, options) → {bemap.Listener}

Define the draggable capability for all bemap.Polygon.

##### Parameters:

Name | Type | Description
--- | --- | ---
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.

Source:
  - bemap-ol/bemap-map-ol-polygon.js, line 123

##### Returns:

bemap.listener.

Type
  bemap.Listener

#### (protected) draggablePolyline(polyline, callback, options) → {bemap.Listener}

Define the draggable capability for bemap.Polyline.

##### Parameters:

Name | Type | Description
--- | --- | ---
`polyline` | bemap.Polyline | bemap object.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.

Overrides:
  - bemap.Map#draggablePolyline
Source:
  - bemap-ol/bemap-map-ol-polyline.js, line 109

##### Returns:

bemap.listener.

Type
  bemap.Listener

#### (protected) draggablePolylines(callback, options) → {bemap.Listener}

Define the draggable capability for all bemap.Polyline.

##### Parameters:

Name | Type | Description
--- | --- | ---
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`layerFilter` | bemap.Layer | set the bemap layer used as filter.

Overrides:
  - bemap.Map#draggablePolylines
Source:
  - bemap-ol/bemap-map-ol-polyline.js, line 123

##### Returns:

bemap.listener.

Type
  bemap.Listener

#### getBoundingBox() → {bemap.BoundingBox}

Get the limits of the map on the current zoom.

Overrides:
  - bemap.Map#getBoundingBox
Source:
  - bemap-ol/bemap-map-ol.js, line 948

##### Returns:

the bounding box containing the limits.

Type
  bemap.BoundingBox

#### getCenter() → {bemap.Coordinate}

Get the center of the map in bemap.Coordinate.

Overrides:
  - bemap.Map#getCenter
Source:
  - bemap-ol/bemap-map-ol.js, line 938

##### Returns:

the center of the map.

Type
  bemap.Coordinate

#### getLayerByName(name) → {bemap.Layer}

Search the layer by name.

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | String | of layer.

Inherited From:
  - bemap.Map#getLayerByName
Source:
  - bemap-map.js, line 232

##### Returns:

Return the layer or null if not found.

Type
  bemap.Layer

#### getRotation() → {int}

Get current rotation angle of map.

Overrides:
  - bemap.Map#getRotation
Source:
  - bemap-ol/bemap-map-ol.js, line 389

##### Returns:

current rotation angle of map in degrees.

Type
  int

#### getXYFromCoordinate() → {Array}

Get the pixel coordinate from bemap coordinate.

Source:
  - bemap-ol/bemap-map-ol.js, line 958

##### Returns:

the corresponding XY coords.

Type
  Array

#### getZoom() → {int}

Get current zoom level of map.

Overrides:
  - bemap.Map#getZoom
Source:
  - bemap-ol/bemap-map-ol.js, line 367

##### Returns:

current zoom level of map.

Type
  int

#### (abstract) isDragPan() → {boolean}

Return the satus of drag pan of map.

##### Parameters:

Name | Type | Description
--- | --- | ---
`options.dragPan.` | Object |

Overrides:
  - bemap.Map#isDragPan
Source:
  - bemap-ol/bemap-map-ol.js, line 245

##### Returns:

true to enable the drag pan of map, otherwise false.

Type
  boolean

#### move(lon, lat, zoom, options) → {bemap.OlMap}

Move map to new coordinate.

##### Parameters:

Name | Type | Description
--- | --- | ---
`lon` | double | Longitude in degres decimal (WGS84).
`lat` | double | Latitude in degres decimal (WGS84).
`zoom` | int | Zoom level (optional).
`options` | Object | Options (optional). ###### Properties
Name | Type | Description
--- | --- | ---
`animate` | String | Enable the animation.
`fly` | String | Enable the animation (same as animate).

Overrides:
  - bemap.Map#move
Source:
  - bemap-ol/bemap-map-ol.js, line 286

##### Returns:

this

Type
  bemap.OlMap

#### moveToBoundingBox(boundingBox) → {bemap.OlMap}

Set the center and the zoom of the map to fit the bounding box.

##### Parameters:

Name | Type | Description
--- | --- | ---
`boundingBox` | bemap.BoundingBox | the bounding box to fit.

Overrides:
  - bemap.Map#moveToBoundingBox
Source:
  - bemap-ol/bemap-map-ol.js, line 320

##### Returns:

this.

Type
  bemap.OlMap

#### (abstract) moveToLayerData(layer, options) → {bemap.Map}

Move map and zoom on data contains in layers.

##### Parameters:

Name | Type | Description
--- | --- | ---
`layer` | bemap.Layer | Layer.
`options` | Object | Options (optional).

Overrides:
  - bemap.Map#moveToLayerData
Source:
  - bemap-ol/bemap-map-ol.js, line 337

##### Returns:

this

Type
  bemap.Map

#### on(eventType, callback, options) → {bemap.Listener}

Set the listner when an specified eventType occur on bemap.OlMap.

##### Parameters:

Name | Type | Description
--- | --- | ---
`eventType` | bemap.Map.EventType | Event type.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Overrides:
  - bemap.Map#on
Source:
  - bemap-ol/bemap-map-ol.js, line 711

##### Returns:

listner.

Type
  bemap.Listener

#### onCircle(circle, eventType, callback, options) → {bemap.Listener}

Set the listner when an specified eventType occur on bemap.Circle.

##### Parameters:

Name | Type | Description
--- | --- | ---
`circle` | bemap.Circle |
`eventType` | bemap.Map.EventType | Event type.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Source:
  - bemap-ol/bemap-map-ol-circle.js, line 104

##### Returns:

this.

Type
  bemap.Listener

#### onGetFeatureInfo(layer, options) → {bemap.Listener}

Set get feature info call back.

##### Parameters:

Name | Type | Description
--- | --- | ---
`layer` | bemap.Layer | set the bemap layer.
`options` | object | options. ###### Properties
Name | Type | Description
--- | --- | ---
`beforeCallback` | function | callback called at data reception and before display the popup.
`afterCallback` | function | callback called after display the popup.
`panningMap` | function | enable the map panning animation. move map from the current position to the popup anchor at the center of map.

Overrides:
  - bemap.Map#onGetFeatureInfo
Source:
  - bemap-ol/bemap-map-ol.js, line 726

##### Returns:

listner;

Type
  bemap.Listener

#### onMarker(marker, eventType, callback, options) → {bemap.Listener}

Set the listner when an specified eventType occur on bemap.Marker.

##### Parameters:

Name | Type | Description
--- | --- | ---
`marker` | bemap.Marker |
`eventType` | bemap.Map.EventType | Event type.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Overrides:
  - bemap.Map#onMarker
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 103

##### Returns:

this.

Type
  bemap.Listener

#### onMarkers(eventType, callback, options) → {bemap.Listener}

Set the listner when an specified eventType occur on all bemap.Marker.

##### Parameters:

Name | Type | Description
--- | --- | ---
`eventType` | bemap.Map.EventType | Event type.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Overrides:
  - bemap.Map#onMarkers
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 117

##### Returns:

this.

Type
  bemap.Listener

#### onMultiMarker(multimarker, eventType, listener, options) → {bemap.Listener}

Set the listner when an specified eventType occur on bemap.MultiMarker.

##### Parameters:

Name | Type | Description
--- | --- | ---
`multimarker` | bemap.MultiMarker |
`eventType` | bemap.Map.EventType | Event type.
`listener` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Source:
  - bemap-ol/bemap-map-ol-marker.js, line 253

##### Returns:

bemap.Listener.

Type
  bemap.Listener

#### onMultiMarkers(eventType, listener, options) → {bemap.Listener}

Set the listner when an specified eventType occur on all bemap.MultiMarker.

##### Parameters:

Name | Type | Description
--- | --- | ---
`eventType` | bemap.Map.EventType | Event type.
`listener` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Overrides:
  - bemap.Map#onMultiMarkers
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 238

##### Returns:

bemap.Listener.

Type
  bemap.Listener

#### onPolygon(polygon, eventType, callback, options) → {bemap.Listener}

Set the listner when an specified eventType occur on bemap.Polygon.

##### Parameters:

Name | Type | Description
--- | --- | ---
`polygon` | bemap.Polygon |
`eventType` | bemap.Map.EventType | Event type.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Source:
  - bemap-ol/bemap-map-ol-polygon.js, line 80

##### Returns:

this.

Type
  bemap.Listener

#### onPolygons(eventType, callback, options) → {bemap.Listener}

Set the listner when an specified eventType occur on all bemap.Polygon.

##### Parameters:

Name | Type | Description
--- | --- | ---
`eventType` | bemap.Map.EventType | Event type.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Source:
  - bemap-ol/bemap-map-ol-polygon.js, line 94

##### Returns:

this.

Type
  bemap.Listener

#### onPolyline(polyline, eventType, callback, options) → {bemap.Listener}

Set the listner when an specified eventType occur on bemap.Polyline.

##### Parameters:

Name | Type | Description
--- | --- | ---
`polyline` | bemap.Polyline |
`eventType` | bemap.Map.EventType | Event type.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Overrides:
  - bemap.Map#onPolyline
Source:
  - bemap-ol/bemap-map-ol-polyline.js, line 80

##### Returns:

this.

Type
  bemap.Listener

#### onPolylines(eventType, callback, options) → {bemap.Listener}

Set the listner when an specified eventType occur on all bemap.Polyline.

##### Parameters:

Name | Type | Description
--- | --- | ---
`eventType` | bemap.Map.EventType | Event type.
`callback` | function | Function will be called when the specified eventType is occur.
`options` | object | options.

Overrides:
  - bemap.Map#onPolylines
Source:
  - bemap-ol/bemap-map-ol-polyline.js, line 94

##### Returns:

this.

Type
  bemap.Listener

#### (abstract) refresh(options) → {bemap.OlMap}

Refresh map.

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | Object | Options (optional).

Overrides:
  - bemap.Map#refresh
Source:
  - bemap-ol/bemap-map-ol.js, line 400

##### Returns:

this

Type
  bemap.OlMap

#### refreshLayer(layer) → {bemap.OlMap}

Refresh all objects from a layer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`layer` | bemap.Layer | the layer object to refresh.

Overrides:
  - bemap.Map#refreshLayer
Source:
  - bemap-ol/bemap-map-ol.js, line 535

##### Returns:

this

Type
  bemap.OlMap

#### removeCircle(circle)

Remove a circle from his layer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`circle` | bemap.Circle | the circle object to remove.

Source:
  - bemap-ol/bemap-map-ol-circle.js, line 86

#### removeLayer(layer) → {bemap.OlMap}

Remove a layer from the map.

##### Parameters:

Name | Type | Description
--- | --- | ---
`layer` | bemap.Layer | layer to remove from the map.

Overrides:
  - bemap.Map#removeLayer
Source:
  - bemap-ol/bemap-map-ol.js, line 577

##### Returns:

this.

Type
  bemap.OlMap

#### (protected) removeListener(listener, options) → {bemap.OlMap}

Remove listener.

##### Parameters:

Name | Type | Description
--- | --- | ---
`listener` | bemap.Listener | Function will be called when the specified eventType is occur.
`options` | object | Options.

Source:
  - bemap-ol/bemap-map-ol.js, line 917

##### Returns:

this.

Type
  bemap.OlMap

#### removeMarker(marker) → {bemap.OlMap}

Remove a marker from his layer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`marker` | bemap.Marker | the marker object to remove.

Overrides:
  - bemap.Map#removeMarker
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 85

##### Returns:

this

Type
  bemap.OlMap

#### removeMultimarker(multimarker) → {bemap.OlMap}

Remove a multimarker from his layer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`multimarker` | bemap.MultiMarker | the multimarker object to remove.

Overrides:
  - bemap.Map#removeMultimarker
Source:
  - bemap-ol/bemap-map-ol-marker.js, line 221

##### Returns:

this

Type
  bemap.OlMap

#### removePolygon(polygon)

Remove a polygon from his layer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`polygon` | bemap.Polygon | the polygon object to remove.

Source:
  - bemap-ol/bemap-map-ol-polygon.js, line 62

#### removePolyline(polyline)

Remove a polyline from his layer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`polyline` | bemap.Polyline | the polyline object to remove.

Overrides:
  - bemap.Map#removePolyline
Source:
  - bemap-ol/bemap-map-ol-polyline.js, line 62

#### removePopup(popup) → {bemap.OlMap}

Remove a popup from the map.

##### Parameters:

Name | Type | Description
--- | --- | ---
`popup` | bemap.Popup | the popup to remove from the map.

Overrides:
  - bemap.Map#removePopup
Source:
  - bemap-ol/bemap-map-ol-popup.js, line 64

##### Returns:

this;

Type
  bemap.OlMap

#### rotation(angle, options) → {bemap.OlMap}

Rotation of map, set new angle of map.

##### Parameters:

Name | Type | Description
--- | --- | ---
`angle` | int | in degrees.
`options` | Object | Options (optional).

Overrides:
  - bemap.Map#rotation
Source:
  - bemap-ol/bemap-map-ol.js, line 378

##### Returns:

this

Type
  bemap.OlMap

#### (protected) setCoordinateCircle(circle) → {bemap.OlMap}

Set the coordinates of the circle.

##### Parameters:

Name | Type | Description
--- | --- | ---
`circle` | bemap.Circle | the circle object to remove.

Source:
  - bemap-ol/bemap-map-ol-circle.js, line 63

##### Returns:

this

Type
  bemap.OlMap

#### (protected) setCoordinateMarker(marker) → {bemap.OlMap}

Set the coordinates of the marker.

##### Parameters:

Name | Type | Description
--- | --- | ---
`marker` | bemap.Marker | the marker object to remove.

Source:
  - bemap-ol/bemap-map-ol-marker.js, line 74

##### Returns:

this

Type
  bemap.OlMap

#### setCoordinatePopup(popup, coordinate, options) → {bemap.OlMap}

Set the coordinate of the popup.

##### Parameters:

Name | Type | Description
--- | --- | ---
`popup` | bemap.Popup | the popup of wich to set the coordinate.
`coordinate` | bemap.Coordinate | the new coordinate.
`options` | object | Options. ###### Properties
Name | Type | Description
--- | --- | ---
`panningMap` | bemap.Layer | enable the map panning animation. move map from the current position to the popup anchor at the center of map.

Overrides:
  - bemap.Map#setCoordinatePopup
Source:
  - bemap-ol/bemap-map-ol-popup.js, line 120

##### Returns:

this.

Type
  bemap.OlMap

#### (abstract) setDragPan(active) → {bemap.OlMap}

Enable or diable the drag pan of map.

##### Parameters:

Name | Type | Description
--- | --- | ---
`active` | boolean | true to enable the drag pan of map, otherwise false.
`options.dragPan.` | Object |

Overrides:
  - bemap.Map#setDragPan
Source:
  - bemap-ol/bemap-map-ol.js, line 264

##### Returns:

this

Type
  bemap.OlMap

#### (protected) setRadiusCircle(circle) → {bemap.OlMap}

Set the radius of the circle.

##### Parameters:

Name | Type | Description
--- | --- | ---
`circle` | bemap.Circle | the circle object to remove.

Source:
  - bemap-ol/bemap-map-ol-circle.js, line 75

##### Returns:

this

Type
  bemap.OlMap

#### setVisiblePopup(popup, visible) → {bemap.Popup}

Set the visiblility of the popup.

##### Parameters:

Name | Type | Description
--- | --- | ---
`popup` | bemap.Popup | the popup.
`visible` | Boolean | true for visible and false for hidden.

Overrides:
  - bemap.Map#setVisiblePopup
Source:
  - bemap-ol/bemap-map-ol-popup.js, line 85

##### Returns:

this.

Type
  bemap.Popup

#### switchBackgroundLayer(geoserver) → {bemap.Map}

Switch bytween several background layers.

##### Parameters:

Name | Type | Description
--- | --- | ---
`geoserver` | String | Name of geoserver.

Inherited From:
  - bemap.Map#switchBackgroundLayer
Source:
  - bemap-map.js, line 195

##### Returns:

this

Type
  bemap.Map

#### updateCircleCenter()

Update the coordinate from the native map browser.

Source:
  - bemap-ol/bemap-map-ol-circle.js, line 143

#### updatePolygonCoordinates()

Update the coordinates from the native map browser.

Source:
  - bemap-ol/bemap-map-ol-polygon.js, line 133

#### visibleLayer(layer) → {bemap.OlMap}

Set the visibility of the layer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`layer` | bemap.Layer | the layer of wich to set the visibility.
`visible.` | boolean |

Overrides:
  - bemap.Map#visibleLayer
Source:
  - bemap-ol/bemap-map-ol.js, line 564

##### Returns:

return this.

Type
  bemap.OlMap

#### zoom(zoom, options) → {bemap.OlMap}

Zoom on map, set new zoom level.

##### Parameters:

Name | Type | Description
--- | --- | ---
`zoom` | int | Zoom level (optional).
`options` | Object | Options (optional).

Overrides:
  - bemap.Map#zoom
Source:
  - bemap-ol/bemap-map-ol.js, line 357

##### Returns:

this

Type
  bemap.OlMap