[OpenLayers-Users] constant text on map
Christopher Schmidt
crschmidt at metacarta.com
Mon Jan 22 09:00:58 EST 2007
On Mon, Jan 22, 2007 at 02:26:57PM +0100, Spalting, Hermann (Kreis Lippe) wrote:
>
> I want to display a constant (copyright) text in the lower right corner of the map.
> How can this be done?
The simplest way is to add a chunk of HTML to the page, and then
position it absolutely over the map:
<div id="labs">
From <a href="http://labs.metacarta.com/">MetaCarta Labs</a>.
</div>
#labs {
position:absolute;
bottom:15px;
left:7px;
font-size:smaller;
z-index: 5000;
}
(From http://labs.metacarta.com/wms-c/tilecache-1.3.tar.gz/index.html.)
If you only want a single copyright line, this is probably good enough.
If you need something that changes every time your viewing area changes,
you'll need something more complex. If that is the case, you can reply
and we can investigate further.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list