[Cartoweb-users] Cartoweb 3.4 and Safari

Oliver Christen oliver.christen at camptocamp.com
Mon Jun 2 04:30:10 EDT 2008


Hi

it seems the safari developers broke the way input of type="image" are handled.
you need to modify the toolbar.tpl and replace:

<input type="image" id="{$tool->id}_icon" alt="{$tool->id}" 
           name="{$tool->id}" 
           title="{t}{$tool->id}{/t}" 
               src="{r type=gfx plugin=$tool->plugin}{$tool->id}.gif{/r}"
               onclick="mainmap.{$tool->id}('map');" />

by something like that :

<img id="{$tool->id}_icon" alt="{$tool->id}" title="{t}{$tool->id}{/t}" 
        src="{r type=gfx plugin=$tool->plugin}{$tool->id}.gif{/r}" onclick="{$tool->id}_trigger();mainmap.{$tool->id}('map');" />

and add the corresponding javascript function somewhere:

function fullextent_trigger() {
  $('fake_reset').value = 1;
  $('fake_reset').name = 'fullextent';
}
for the fullextent.

the idea is the same for the reset button, but that one is not generated by the toolbar.tpl but should directly in your cartoclient.tpl i believe

regards
Oliver
  ----- Original Message ----- 
  From: Kurt Menke 
  To: cartoweb-users at lists.maptools.org 
  Sent: Wednesday, May 28, 2008 4:11 PM
  Subject: [Cartoweb-users] Cartoweb 3.4 and Safari


  Hello,

  A client of mine discovered that the cartoweb application I set up for them is not performing well in Safari (v3.1).  It becomes locked in to a certain map extent and the Refresh, Reset Session and Zoom to Full Extent buttons do not function at all.  Are there any work-arounds for this?  My cartoweb application is straight out of the box with no customizations.

   

  Kurt

   

  **************************

  Kurt Menke, GISP

  Bird's Eye View 

  3016 Santa Clara Ave SE

  Albuquerque, NM 87106

  www.BirdsEyeViewGIS.com 

  Cell: 505-362-1776

  Work: 505-265-0243

   



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


  _______________________________________________
  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/20080602/1d75b24d/attachment.html


More information about the Cartoweb-users mailing list