<title>Threatened Ecosystems of South Africa</title>
in the html file, the Open Layers map does not include a title like Leaflet does. Is there some way around this, or is this just how it is unfortunately?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
If you edit the
index.html file that qgis2web produces you'll see the title tags in the head section of the file.
<title>This is an OL3 map</title>
The text between the tags is displayed on the tab on your browser.
If you want a title on the map itself then you need to add some text in the body section of
<h1 align=center>This is an OL3 map</h1>
It is just how it is at the moment, I'm afraid. Leaflet has a built-in method for adding the title to the map, but OpenLayers does not. It can be developed, and there is an existing issue on Github which includes this:
In that comment, Ola's code is the way to tackle this: place a
<div> within the
<map>, and then use CSS to style it.