Hello Armin, hello all pmappper-user.

This is my mapserver and pmapper details :
PHP- 5.4.3
MapServer version 6.0.3 (MS4W 3.0.6)
phpPgAdmin 5.1
PostgreSQL 8.4.21
pmapper-4.3.2

Problem:
When I was tried to using search function on pmapper, the javascript was
completely success and displayed row that's I want.
But, when I look at URL that produces by javascript (PM.Map.zoom2extent
function), I got strange allextent for this query especially for
projection. I used WGS84 projection with EPSG:4326. As we knew, for this
projection we only have degrees about 0-90 for lat and 0-180 for lon. At
URL javascript produces, I got :
javascript:PM.Map.zoom2extent('apt_geo','5','-9882.3327778+-9995.863611111+10117.6672222+10004.136388889','1')

What should I do for fix or set allextent auto adapted selected data when I
using search query?

I hope for all of your advise,
Thank you.
<pmapper>
    <ini>
        <pmapper>
            <!--<pmTitle>p.mapper - A MapServer PHP/MapScript Framework</pmTitle>-->
			<pmTitle>GIS Application Page</pmTitle>
			<pmHeading>VOR/NDB Navigation</pmHeading>
            <debugLevel>3</debugLevel>
            <plugins>export</plugins>
            <plugins>scalebar</plugins>
            <plugins>transparency</plugins>
			<plugins>proj4js</plugins>
        </pmapper>
        <config>
            <pm_config_location>default</pm_config_location>
            <pm_javascript_location>javascript</pm_javascript_location>
            <pm_print_configfile>common/print.xml</pm_print_configfile>
            <pm_search_configfile>inline</pm_search_configfile>
        </config>
        <map>
            <mapFile>pmapper_rfinder.map</mapFile>
            <tplMapFile>common/mytemplate.map</tplMapFile>
			<categories>
				<category name="Airports and Facilities">
					<group>vor_geo</group>
					<group>ndb_geo</group>
					<group>apt_geo</group>
				</category>
				<category name="Borneo">
					<group>borneo_area_geo</group>
				</category>
			</categories>
			<allGroups>
				<group>apt_geo</group>
				<group>borneo_area_geo</group>
				<group>ndb_geo</group>
				<group>vor_geo</group>
			</allGroups>
			<defGroups>
				<group>apt_geo</group>
				<group>borneo_area_geo</group>
				<group>ndb_geo</group>
				<group>vor_geo</group>
			</defGroups>
            <layerAutoRefresh>1</layerAutoRefresh>
            <imgFormat>png8</imgFormat>
            <altImgFormat>jpeg</altImgFormat>
            <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>attached</legendStyle>
            <useCategories>1</useCategories>
            <catWithCheckbox>1</catWithCheckbox>
            <scaleLayers>1</scaleLayers>
            <icoW>18</icoW>
            <icoH>14</icoH> 
			<legendKeyimageRewrite>0</legendKeyimageRewrite>
        </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>
            <defaultTimeZone>Asia/Ujung_Pandang</defaultTimeZone>
        </php>
        <pluginsConfig>
            <export>
                <formats>XLS</formats>
                <formats>CSV</formats>
                <formats>PDF</formats>
            </export>
        </pluginsConfig>
    </ini>
    
    
    
    <searchlist version="1.0">
        <dataroot>$</dataroot>
		<searchitem name="apt_geo" description="Airport">
			<layer type="postgis" name="apt_geo">
				<field type="s" name="ICAO" description="ICAO"  wildcard="0">
					<definition type="suggest" connectiontype="db" sort="asc">
						<dsn encoding="UTF-8">pgsql://dedyfuad:1234@localhost/proj_02</dsn>
						<sql>
							SELECT DISTINCT icao FROM public.apt_geo WHERE icao ~* '^[search]' ORDER BY icao
						</sql>
					</definition>
				</field>
			</layer>
		</searchitem>	
    </searchlist>
    
    
</pmapper>

Attachment: mytemplate.map
Description: Binary data

Attachment: pmapper_rfinder.map
Description: Binary data

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to