Skip to content

Commit d34facc

Browse files
committed
Update package and API with styling code and new markers version
1 parent 0897268 commit d34facc

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

API.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,10 @@ returns the DOM element this control exposes.
477477

478478
Add a link that can maximize and minimize the map on the browser page
479479

480+
_DOM Structure:_
481+
482+
<a class="map-fullscreen" href="#fullscreen">fullscreen</a>
483+
480484
### map.ui.hash
481485

482486
Add the map's changing position to the URL, making map locations linkable
@@ -490,14 +494,32 @@ to which the map zooms
490494

491495
Add zoom in and zoom out buttons to map
492496

497+
_DOM Structure:_
498+
499+
<!-- when a zoom control is inactive, .zoomdisable is added to it -->
500+
<a href="#" class="zoomer zoomin">+</a>
501+
<a href="#" class="zoomer zoomout">-</a>
502+
493503
### map.ui.attribution
494504

495505
Add an element with attribution information to the map
496506

507+
_DOM Structure:_
508+
509+
<div class="map-attribution map-mm"></div>
510+
497511
### map.ui.legend
498512

499513
Add an element with legend information to map
500514

515+
_DOM Structure:_
516+
517+
<div class="map-legends">
518+
<div class="map-legend">
519+
<!-- Legend content -->
520+
</div>
521+
</div>
522+
501523
### map.ui.pointselector
502524

503525
Allow simple location selection on the map: clicking without dragging will select
@@ -597,12 +619,18 @@ This internally calls [`interaction.refresh()`](#interaction.refresh) to set the
597619

598620
_Returns_ the interaction control
599621

600-
**Example:**
622+
_Example:_
601623

602624
var interaction = mapbox.interaction()
603625
.map(map)
604626
.auto();
605627

628+
_DOM Structure (tooltips)_:
629+
630+
<div class="map-tooltip map-tooltip-0">
631+
<!-- Tooltip content -->
632+
</div>
633+
606634
### map.interaction.refresh()
607635

608636
Refresh interactivity control to reflect any layer changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"wax": "7.0.0dev9",
1515
"bean": "0.4.11-1",
1616
"mustache": "0.4.0",
17-
"markers": "0.14.0",
17+
"markers": "0.14.1",
1818
"easey": "2.0.5"
1919
},
2020
"devDependencies": {

0 commit comments

Comments
 (0)