<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Mathieu,<br>
<br>
I think you can do what you want, but it's not in the geostat.ini.
You'll have to tweak the geostat template files:<br>
<br>
* in order to activate chropleth map by default, try to modify
templates/switch.tpl, replace the html with the following:<br>
<tt><small><input type="checkbox"<br>
name="{$geostatStatusName}" id="{$geostatStatusName}"<br>
onclick="CartoWeb.trigger('Geostat.UpdateMap', 'doSubmit()')"<br>
checked="checked" /><br>
<label for="{$geostatStatusName}">{t}Display
geostatistics{/t}</label><br>
</small></tt><br>
* remove the configure dataset and representation by modifying
templates/geostat.tpl:<br>
- you should remove the div containing the followinf smarty
variables: {$geostat_data_source} and {$geostat_choropleth_dataset}<br>
- after that the file should look like:<br>
<tt><small><div id="geostatGUI"><br>
<br>
{$geostat_switch}<br>
<br>
<hr /><br>
<br>
{$geostat_data_source}<br>
<br>
<hr /><br>
<br>
<input type="hidden"<br>
name="geostatShownElementsIdCsv"<br>
id="geostatShownElementsIdCsv"<br>
value="{$geostat_shownElementsIdsCsv}" /><br>
<br>
{literal}<br>
<script type="text/javascript"><br>
function toggleGeostatPane(elementId) {<br>
if ($(elementId) == null) return;<br>
<br>
// Toggles element (show/hide)<br>
Element.toggle(elementId);<br>
<br>
var display = $(elementId).style.display;<br>
if (display == '') display = 'block';<br>
<br>
// Change the arrow img<br>
var imgPath = {/literal}'{r type=gfx
plugin=geostat}{/r}'{literal};<br>
if (display == 'none') $(elementId + '_img').src = imgPath +
'arrow_closed.gif';<br>
else $(elementId + '_img').src = imgPath + 'arrow_opened.gif';<br>
<br>
// Writes the display state in the hidden field<br>
$(elementId + '_display').value = display;<br>
}<br>
</script><br>
{/literal}<br>
<br>
</div><br>
</small></tt><br>
It should work this way....<br>
<br>
Regards,<br>
Damien<br>
<br>
<br>
Mathieu Despont wrote:
<blockquote cite="midF61AD7E0-8B80-4588-BBA1-70D15AED8908@ecodev.ch"
type="cite">Hello
<br>
<br>
I'm trying to configure the geostat plugin.
<br>
In the geostat exemple (demoGeostat), the user has to clic on the
"active choropleth" checkbox to display the map.
<br>
<br>
How can i configure the plugin to have direct my choroplet map
activated ??
<br>
<br>
And how can i remove the "configure dataset" and "configure
representation" forms ??
<br>
<br>
Is it in geostat.ini file ??
<br>
Where can i find exactly how to configure this file ?? which are
possible config values ??
<br>
<br>
in advance, thanks for your response.
<br>
<br>
Regards,
<br>
<br>
Mathieu
<br>
_______________________________________________
<br>
Cartoweb-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a>
<br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<style>
<!--
.signature {
font-family:verdana,helvetica,sans-serif;
font-size:0.8em;
line-height: 1.25em;
color: #9999BB;
width: 27em;
}
.signature div {
padding: 0.22em;
margin-bottom: 0.5em;
margin-top: 0.5em;
border-bottom: 1px dotted lightgray;
background-color: #FCFCFF;
}
.signature .attention {
background-color: #FFFAFA;
color: #FFBBBB;
font-size: 0.8em;
font-weight: bold;
}
.header {
}
-->
</style>
<div class="signature">
<div> <span style="font-weight: bold;">Camptocamp SA</span><br>
Damien Corpataux<br>
PSE A<br>
CH-1015 Lausanne<br>
</div>
<div> +41 21 619 10 22 <span class="header">(Direct)</span><br>
+41 21 619 10 10 <span class="header">(Centrale)</span><br>
+41 21 619 10 00 <span class="header">(Fax)</span><br>
</div>
<div style="color: rgb(102, 204, 102);"> <span
style="position: relative; top: -3px; font-family: Webdings; font-size: 24pt;">P</span>
<span style="">Please consider the environment <br>
Do you really need to print this email?</span>
</div>
</div>
</div>
</body>
</html>