[Cartoweb-users] Scale value not showing

Oliver Christen oliver.christen at camptocamp.com
Thu Jun 7 08:04:14 EDT 2007


and do you have

        AjaxHandler.updateDomElement(this.currentScaleId, 'innerHTML',
                                     '1:' + 
pluginOutput.variables.currentScale_value);

in your Location.ajax.js (and not pluginOutput.variables.currentScale) ?

regards
Oliver

----- Original Message ----- 
From: "Véro Herzl - Bluewin" <veroh at bluewin.ch>
To: "Oliver Christen" <oliver.christen at camptocamp.com>; 
"Cartoweb_Mailing_List" <cartoweb-users at lists.maptools.org>
Sent: Thursday, June 07, 2007 12:57 PM
Subject: Re: [Cartoweb-users] Scale value not showing


> Hi
>
> Yes, I got the ajax mode on
>
> V.
>
>
> Oliver Christen a écrit :
>> Look on your ClientLocation.php file, function renderFormPrepare, and see 
>> if you have 'currentScale_value' => $scale or 'currentScale' => $scale.
>> Use the corresponding variable name in the template.
>>
>> But then, maybe the problem is elsewhere.
>>
>> Are you using your project with ajax mode on ?
>>
>> regards
>> Oliver
>>
>>> Hi,
>>>
>>> I changed the value in the cartoclient.tpl as asked but unfortunately, 
>>> no change. Do I have to modify it in another file ? ClientLayer.php ?
>>>
>>> V.
>>>
>>>
>>>
>>> Oliver Christen a écrit :
>>>> Hi
>>>>
>>>> Maybe this is linked to a recent change with the current scale variable 
>>>> name.
>>>> If you are using up-to-date cvs version of Cartoweb, you need to use 
>>>> $currentScale_value instead of $currentScale in the template.
>>>>
>>>> regards
>>>> Oliver
>>>>
>>>> ----- Original Message ----- From: "Véro Herzl - Bluewin" 
>>>> <veroh at bluewin.ch>
>>>> To: "Cartoweb_Mailing_List" <cartoweb-users at lists.maptools.org>
>>>> Sent: Wednesday, June 06, 2007 7:29 AM
>>>> Subject: [Cartoweb-users] Scale value not showing
>>>>
>>>>
>>>>> Hi everybody
>>>>>
>>>>> We have been developping our project cartoweb but we got a problem 
>>>>> with the scale.
>>>>> So when we enter the project by our website, the scale value is not 
>>>>> shown (Scale 1:). We got to zoom a bit into it and then the scale 
>>>>> value appear.
>>>>> Also, if we refresh the map (when adding a new layer for instance), 
>>>>> the scale value disappear and will only reappear if we zoom or if we 
>>>>> move a bit with the pan action).
>>>>>
>>>>> We looked at the existing project and saw that either it was also the 
>>>>> case (as for the test project) or else the scale value was not 
>>>>> displayed.
>>>>>
>>>>> Did we miss something important ?
>>>>>
>>>>> As anyone already encounter that problem and, by any chance, solved it 
>>>>> ?
>>>>>
>>>>> Thanks a lot for any advice
>>>>>
>>>>> V.
>>>>> _______________________________________________
>>>>> Cartoweb-users mailing list
>>>>> Cartoweb-users at lists.maptools.org
>>>>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>>>>
>>>>
>>>
>>>
>>
>
> 



More information about the Cartoweb-users mailing list