Hi all

Using the supplied demo example all works fine, however if I thin out the
data in the config xml file (groups etc) then the legend won't display until
a layer is turned off then on again.

In the error log I have the following (i switched from a not working config
to a working one) interesting that there is a warning too, though not the
cause!

Warning: DOMDocument::schemaValidate(): Element 'pmapper': No matching
global declaration available for the validation root. in
D:\ms4w\apps\pmapper\pmapper-vuks\incphp\query\search.php on line 69

[15-Mar-2011 14:57:22] P.MAPPER debug info
 Validation of search.xml file FAILED:

Warning: DOMDocument::schemaValidate(): Element 'pmapper': No matching
global declaration available for the validation root. in
D:\ms4w\apps\pmapper\pmapper-vuks\incphp\query\search.php on line 69

[15-Mar-2011 14:58:51] P.MAPPER debug info
 Validation of search.xml file succeeded


I can see in firebug that a load stops after calling
x_get-transparencies.php? before it can load x_toc_update.php? which I guess
would load the legend.

The bad config xml is below, I did strip out the search tags (do they have
to remain in but empty?).

<pmapper>
    <ini>
        <pmapper>
            <pmTitle>p.mapper - A MapServer PHP/MapScript
Framework</pmTitle>
            <pmLogoSrc>images/logos/logo-blue-lightblue.png</pmLogoSrc>
            <debugLevel>1</debugLevel>
            <plugins>export</plugins>
            <plugins>scalebar</plugins>
            <plugins>transparency</plugins>
        </pmapper>
        <config>
            <pm_config_location>default1</pm_config_location>
            <pm_javascript_location>javascript</pm_javascript_location>
            <pm_javascript_optional>optional/ui</pm_javascript_optional>
            <pm_print_configfile>common/print.xml</pm_print_configfile>
            <pm_search_configfile>inline</pm_search_configfile>
        </config>
        <map>
            <mapFile>pmapper_demo.map</mapFile>
            <tplMapFile>common/template.map</tplMapFile>
            <categories>
                <category name="cat_admin">
                    <group>countries</group>
                </category>
            </categories>
            <allGroups>
                <group>countries</group>
            </allGroups>
            <defGroups>
                <group>countries</group>
            </defGroups>
            <layerAutoRefresh>1</layerAutoRefresh>
            <sliderMax>max</sliderMax>
            <sliderMin>100000</sliderMin>
        </map>
        <query>
            <limitResult>300</limitResult>
            <highlightColor>0 255 255</highlightColor>
            <highlightSelected>1</highlightSelected>
            <autoZoom>nquery</autoZoom>
            <autoZoom>search</autoZoom>
            <zoomAll>search</zoomAll>
            <zoomAll>nquery</zoomAll>
            <infoWin>dynwin</infoWin>
            <alignQueryResults>1</alignQueryResults>
            <pointBuffer>10000</pointBuffer>
            <shapeQueryBuffer>0.02</shapeQueryBuffer>
        </query>
        <ui>
            <tocStyle>tree</tocStyle>
            <legendStyle>swap</legendStyle>
            <useCategories>1</useCategories>
            <catWithCheckbox>1</catWithCheckbox>
            <scaleLayers>1</scaleLayers>
            <icoW>18</icoW>
            <icoH>14</icoH>
        </ui>
        <locale>
            <defaultLanguage>en</defaultLanguage>
            <defaultCharset>UTF-8</defaultCharset>
            <map2unicode>1</map2unicode>
        </locale>
        <print>
            <printImgFormat>png</printImgFormat>
            <printAltImgFormat>jpeg</printAltImgFormat>
            <pdfres>2</pdfres>
        </print>
        <download>
            <dpiLevels>150</dpiLevels>
            <dpiLevels>200</dpiLevels>
            <dpiLevels>300</dpiLevels>
        </download>
        <php>
            <pearDbClass>MDB2</pearDbClass>
        </php>
        <pluginsConfig>
            <export>
                <formats>XLS</formats>
                <formats>CSV</formats>
                <formats>PDF</formats>
            </export>
        </pluginsConfig>
    </ini>

</pmapper>

Chris
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to