[Cartoweb-users] Zoom not updates the scale

Albert Casanovas casanovas at k2sistemas.com.br
Thu Jul 31 18:06:12 EDT 2008


Hi,

Was that exactly, we only introduced the id="scalebar" in the IMG tag and was working.


Thanks again,
Albert


  ----- Original Message ----- 
  From: Oliver Christen 
  To: Albert Casanovas ; cartoweb-users at lists.maptools.org 
  Sent: Tuesday, July 29, 2008 3:17 AM
  Subject: Re: [Cartoweb-users] Zoom not updates the scale


  Hi

  if you are using your project with ajax enabled, maybe the page content is simply not refreshed correctly by the corresponding javascript.
  it's the images coreplugin that handle map, keymap and scalebar refresh. The logic is in Images.ajax.js and the line is AjaxHandler.updateDomElement(this.scalebarId, 'src', pluginOutput.variables.scalebar_path);
  be sure your scalebar is included in an element with a "scalebar" id.

  In the JSTrace Debugger windows, be sure you have :

  Response received!
  Plugins that gave response: ... images ...
  ...
  Updating GUI for plugin Images
  ...
  AjaxHandler.updateDomElement(): Updating scalebar element's src's value...



  regards
  Oliver
    ----- Original Message ----- 
    From: Albert Casanovas 
    To: cartoweb-users at lists.maptools.org 
    Sent: Monday, July 28, 2008 9:38 PM
    Subject: [Cartoweb-users] Zoom not updates the scale


    Hi,

    We noticed that when using the zoom tool, the scale bar is not updated, it stays the same the whole time.

    But if for example, we use the filterplugin to show a concrete part of the layer it gets updated. Any idea where is the problem? We tested it in the http://www.cartoweb.org/demos/demoPlugins.php and works.

    Regards,
    Albert 


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


    _______________________________________________
    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/20080731/23974d13/attachment.html


More information about the Cartoweb-users mailing list