mapbox/mapbox-gl-js

Allow controls to be placed at top-center, bottom-center, left-center, and right-center

Open

#3.039 geöffnet am 20. Aug. 2016

Auf GitHub ansehen
 (12 Kommentare) (16 Reaktionen) (0 zugewiesene Personen)JavaScript (2.203 Forks)batch import
feature :green_apple:good first issue

Repository-Metriken

Stars
 (10.532 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

mapbox-gl-js version:Master

Steps to Trigger Behavior

Can you please suggest a workaround / solution for this? This is blocking switching from G Maps to Mapbox GL JS.

We need to put controls on the map at top center and bottom center. Google maps supports this and other positions for controls. You can find more details of supported positions at the link below. TOP_CENTER and BOTTOM_CENTER would unblock me.

I am hoping it just a matter of adding css. mapbox-gl.css only includes css for adding controls at the four corners.

https://developers.google.com/maps/documentation/javascript/controls

Expected Behavior

Actual Behavior

Contributor Guide