CartoWeb 3.4.0 RC1
Download Now!


CartoWeb
Advanced Geographical Information System for the Web

Position the Keymap on the Right of the Map

If the collapsible Keymap is activated, it will lie on the top left corner of the map by default.

If you want to position it on the right, follow the simple modifications below. Line references are given for the upstream Cartoweb files. If you do not have these files in your project already, make a copy of the upstream files.

Template

in project/yourproject/template/mainmap.tpl, line 11 :

replace:

  <div id="keymapContainer">

by:

  <div id="keymapContainer" style="width:{$mainmap_width}px;">

Css

in project/yourproject/htdocs/css/keymap.css, line 10 :

replace:

#floatkeymap {
  position:relative;
  border:1px solid #ccc;
  padding:0;
  margin:5px;
}

by:

#floatkeymap {
  position:absolute;
  top: 3px;
  right: 3px;
  border:1px solid #ccc;
  padding:0;
  margin:0;
}

line 24 :

replace :

#keymapswitcher {
  position:absolute;
  top: 8px;
  left: 8px;
}

by :

#keymapswitcher {
  position:absolute;
  top: 8px;
  right: 8px;
}

CartoWeb Wiki: HowToPositionTheKeymapOnTheRight (last edited 2020-08-15 10:19:49 by AlexSaunier)

© 2002-2006 CartoWeb by Camptocamp SA - Wiki powered by MoinMoin