mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Mapbox popup className option (#27068)
* added mapbox-gl popup className option * added mapbox-gl popup className option test
This commit is contained in:
Vendored
+2
@@ -464,6 +464,8 @@ declare namespace mapboxgl {
|
||||
anchor?: Anchor;
|
||||
|
||||
offset?: number | PointLike | { [key: string]: PointLike; };
|
||||
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export interface Style {
|
||||
|
||||
@@ -225,7 +225,7 @@ map.addLayer({
|
||||
/**
|
||||
* Popup
|
||||
*/
|
||||
var popup = new mapboxgl.Popup({closeOnClick: false, closeButton: true, anchor: 'top-right', offset: {'top': [0,0], 'bottom': [25,-50]} })
|
||||
var popup = new mapboxgl.Popup({closeOnClick: false, closeButton: true, anchor: 'top-right', offset: {'top': [0,0], 'bottom': [25,-50]}, className: 'custom-class' })
|
||||
.setLngLat([-50, 50])
|
||||
.setHTML('<h1>Hello World!</h1>')
|
||||
.addTo(map);
|
||||
|
||||
Reference in New Issue
Block a user