I don't find anything on the Mapbox documentation about this ; so I guess I've missed the logic : is there a simple way to add a title on the map that is not affected by the zoom ? (like the Mapbox logo at the bottom left)

1 Answer 1


Just use a <div> or <pre> element on top of the map <div>.

Here is an example based on https://docs.mapbox.com/mapbox-gl-js/example/mouse-position/:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.