[Cartoweb-users] mainmap in div position absolute

Oliver Christen oliver.christen at camptocamp.com
Thu Aug 10 02:37:45 EDT 2006


Indeed, the enclosing div (or parents element) must be set to position:relative because some of the div used for the map and all the dhtml tools use an absolute positionning. If the enclosing element is set to absolute, the enclosed div are not positionned correctly, which result in misplaced image and tools not functionning.

This is a restriction at the moment for the current dhtml. You will have to find another way to position your map into the template.

Btw, float:left; width:98%; in your css are useless because overrided by the following rules.

An exemple of all div template is http://www.plan.epfl.ch, have a look with firefox's DOM inspector (or look at the page source).

Regards
Oliver
  ----- Original Message ----- 
  From: François Prunayre 
  To: cartoweb-users at lists.maptools.org 
  Sent: Thursday, August 10, 2006 8:21 AM
  Subject: [Cartoweb-users] mainmap in div position absolute


  Hi list, I'm trying to put my map "<table>...{include file="mainmap.tpl"}...</table>" into a div. 
  When the table is in my div, the loadbar works fine, pan arrows are ok but I can't get my map image and the tool zoom in/out doesn't work.

  The style of the div I put my map on is :
  div.box{

  float:left; 

  width:98%; 

  height:530px;

  position:absolute;

  top:60px;

  left:455px;

  width:400px;

  }

  Is there any problem using div position absolute and the map interface ?

  Thanks for your help. 
  Francois.


  -- 
  Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. 

  Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et privés.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. 

  Any data and information contained in this electronic mail is personal, confidential and private. Any total or partial publication, use or distribution must be authorized. 


------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060810/59b8bccb/attachment.html


More information about the Cartoweb-users mailing list