[Cartoweb-users] Label Box Position

Oliver Christen oliver.christen at camptocamp.com
Fri Mar 9 02:41:29 EST 2007


the box should appear next to the mouse cursor position, incidentaly near the last point you clicked.

edit the outline.js file and add an alert in the code:

function addLabel(text,x,y) {
  alert("addLabel called \n text: " + text + "\n x:" + x + "\n y:" + y);
  outlineLabelInput = xGetElementById('outlineLabelInputDiv');
  outlineLabelText = xGetElementById('outline_label_text');
  outlineLabelText.value = text;
  xMoveTo(outlineLabelInput,x + 5,y + 5);
  outlineLabelInput.style.zIndex = 3;
  xShow(outlineLabelInput);
}

let me know what is the output.
  ----- Original Message ----- 
  From: Paul Shapley 
  To: Oliver Christen 
  Sent: Thursday, March 08, 2007 4:27 PM
  Subject: Re: [Cartoweb-users] Label Box Position


  Hello Oliver,

  Strange!. Yes this appears exactly as you stated in outline.css. Oddly.... when you type in the box it labels the object exactly as it should, it just appears outside the main 'map' window. This seem to occur after i re-introduced the project file into 3.3.0.

  Is opening the position of this box determined by the location of the last 'location point' of the polygon?.

  Regards,

  Paul

   
  On 08/03/07, Oliver Christen <oliver.christen at camptocamp.com> wrote: 
    Hi Paul, 
    the only reason i can think about is the css rule is not set for the label floating box.

    check if you have this in your outline.css
    #outlineLabelInputDiv {      position:absolute; 
               visibility:hidden; 
               padding:10px; 
               background-color:#f5f5f5; 
               border:1px dashed #dfdfdf; 
             } 


    Regards,
    Oliver
      ----- Original Message ----- 
      From: Paul Shapley 
      To: cartoweb-users at lists.maptools.org 
      Sent: Thursday, March 08, 2007 2:36 PM
      Subject: [Cartoweb-users] Label Box Position

       
      Hi Users,

      Somehow i've got my label box above the tabs on the legend instead of on the map. Which file do i use to correct it?.

      All i've done is recently updated to 3.3.0 from 3.2. Has the Cartoclient.tpl code changed.

      -- 
      Paul J. Shapley 


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


      _______________________________________________
      Cartoweb-users mailing list
      Cartoweb-users at lists.maptools.org 
      http://lists.maptools.org/mailman/listinfo/cartoweb-users






  -- 
  Paul J. Shapley 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070309/0a7a41c3/attachment.html


More information about the Cartoweb-users mailing list