Control.Attribution
The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its attributionControl
option to false
, and it fetches attribution texts from layers with the getAttribution
method automatically. Extends Control.
Creation
Factory | Description |
---|---|
L.control.attribution( |
Creates an attribution control. |
Options
Option | Type | Default | Description |
---|---|---|---|
prefix |
String
| 'Leaflet' |
The HTML text shown before the attributions. Pass false to disable. |
Option | Type | Default | Description |
---|---|---|---|
position |
String
| 'topright' |
The position of the control (one of the map corners). Possible values are 'topleft' ,
'topright' , 'bottomleft' or 'bottomright' |
Methods
Method | Returns | Description |
---|---|---|
setPrefix( |
this |
Sets the text before the attributions. |
addAttribution( |
this |
Adds an attribution text (e.g. |
removeAttribution( |
this |
Removes an attribution text. |
Method | Returns | Description |
---|---|---|
getPosition() |
string |
Returns the position of the control. |
setPosition( |
this |
Sets the position of the control. |
getContainer() |
HTMLElement |
Returns the HTMLElement that contains the control. |
addTo( |
this |
Adds the control to the given map. |
remove() |
this |
Removes the control from the map it is currently active on. |
v0.1.2126
- L.Wrld.map
- L.Wrld.map.indoors
- L.Wrld.map.themes
- L.Wrld.map.routes
- L.Wrld.map.buildings
- L.Wrld.map.indoorMapEntities
- L.Wrld.map.indoorMapFloorOutlines
- L.Wrld.indoorMapEntities .IndoorMapEntityInformation
- L.Wrld.indoorMapEntities.IndoorMapEntity
- L.Wrld.indoorMapFloorOutlines .IndoorMapFloorOutlineInformation
- L.Wrld.indoorMapFloorOutlines .IndoorMapFloorOutlinePolygon
- L.Wrld.indoorMapFloorOutlines .IndoorMapFloorOutlinePolygonRing
- L.Wrld.themes
- L.Wrld.Heatmap
- L.Wrld.buildings.BuildingHighlight
- L.Wrld.buildings.BuildingHighlightOptions
- L.Wrld.buildings.BuildingInformation
- L.Wrld.buildings.BuildingDimensions
- L.Wrld.buildings.BuildingContour
- Event objects
- WrldPoiApi
- L.Map
- L.Marker
- L.Popup
- L.Tooltip
- L.TileLayer
- L.TileLayer.WMS
- L.ImageOverlay
- L.Path
- L.Polyline
- L.Polygon
- L.Rectangle
- L.Circle
- L.CircleMarker
- L.SVG
- L.Canvas
- L.LayerGroup
- L.FeatureGroup
- L.GeoJSON
- L.GridLayer
- L.LatLng
- L.LatLngBounds
- L.Point
- L.Bounds
- L.Icon
- L.DivIcon
- L.Control.Zoom
- L.Control.Attribution
- L.Control.Layers
- L.Control.Scale
- L.Browser
- L.Util
- L.Transformation
- L.LineUtil
- L.PolyUtil
- L.DomEvent
- L.DomUtil
- L.PosAnimation
- L.Draggable
- L.Class
- L.Evented
- L.Layer
- Interactive layer
- L.Control
- L.Handler
- L.Projection
- L.CRS
- L.Renderer
- Event objects
- L.DivOverlay
- Global Switches
- L.noConflict
- L.version
Map
Indoor Map Entities
Indoor Map Floor Outlines
Themes
Heatmaps
Buildings
Events
Services (Optional)
Leaflet
Map
L.Wrld.map
L.Wrld.map.indoors
L.Wrld.map.themes
L.Wrld.map.routes
L.Wrld.map.buildings
L.Wrld.map.indoorMapEntities
L.Wrld.map.indoorMapFloorOutlines
Indoor Map Entities
L.Wrld.indoorMapEntities .IndoorMapEntityInformation
L.Wrld.indoorMapEntities.IndoorMapEntity
Indoor Map Floor Outlines
L.Wrld.indoorMapFloorOutlines .IndoorMapFloorOutlineInformation
L.Wrld.indoorMapFloorOutlines .IndoorMapFloorOutlinePolygon
L.Wrld.indoorMapFloorOutlines .IndoorMapFloorOutlinePolygonRing
Themes
L.Wrld.themes
Heatmaps
L.Wrld.Heatmap
Buildings
L.Wrld.buildings.BuildingHighlight
L.Wrld.buildings.BuildingHighlightOptions
L.Wrld.buildings.BuildingInformation
L.Wrld.buildings.BuildingDimensions
L.Wrld.buildings.BuildingContour
Events
Event objects
Services (Optional)
WrldPoiApi
Leaflet
L.Map
L.Marker
L.Popup
L.Tooltip
L.TileLayer
L.TileLayer.WMS
L.ImageOverlay
L.Path
L.Polyline
L.Polygon
L.Rectangle
L.Circle
L.CircleMarker
L.SVG
L.Canvas
L.LayerGroup
L.FeatureGroup
L.GeoJSON
L.GridLayer
L.LatLng
L.LatLngBounds
L.Point
L.Bounds
L.Icon
L.DivIcon
L.Control.Zoom
L.Control.Attribution
L.Control.Layers
L.Control.Scale
L.Browser
L.Util
L.Transformation
L.LineUtil
L.PolyUtil
L.DomEvent
L.DomUtil
L.PosAnimation
L.Draggable
L.Class
L.Evented
L.Layer
Interactive layer
L.Control
L.Handler
L.Projection
L.CRS
L.Renderer
Event objects
L.DivOverlay
Global Switches
L.noConflict
L.version