Hi, List:

I have my pmapper-page almost ready, but have some problems with search:

1) When I query a point shape, I've got results but the zoom fixes to 1:2103, 
and as I have fixed the MAXSCALE of the queried shape in 1:2000, I see the 
highlited result but not the value of the shape. ¿Where can I change the zoom 
factor?

2) I've also defined in search.xml a polygon shape to query, the windows 
open... but anything else happens. 

3) And the last, but most important, I want to define a line shape to be 
searchable, as "Vie" in http://www.montanolucino-ut.it/map/, but I'm not able 
to do it. I've defined it in search.xml, but nothing happens, as in the polygon 
shape.

¿Can anybody help me? Thanks, Lara Perez.


search.xml

<?xml version='1.0'?>
<!-- <?xml-stylesheet href="style.xsl" type="text/xsl" ?> -->

<searchlist version="1.0">
    
    <dataroot></dataroot>
    
    <searchitem name="obrmay" description="Obras Mayores">
        <layer type="shape" name="obrmay">
            <field type="s" name="N_" description="Numero"  wildcard="0" />
        </layer>
    </searchitem>
    
    <searchitem name="Nucleos" description="Plan urbanistico">
        <layer type="shape" name="nucleos">
            <field type="s" name="NOMBRE" description="Plan"  wildcard="0" />
        </layer>
    </searchitem>
    
    <searchitem name="Nomcall" description="Calle">
        <layer type="shape" name="nomcall">
            <field type="s" name="NOMRES" description="Calle"  wildcard="0" />
        </layer>
    </searchitem>
    
</searchlist> 

pmapper_demo.map

#==============================================
    LAYER #Nombre calles
        NAME        Nomcall
        DATA        nomcall
        STATUS      DEFAULT
        TYPE        LINE
        #GROUP       CALLEJERO
        MAXSCALE 4999

        PROJECTION
            "init=epsg:23030" # ED(50) UTM ZONA 30
        END
        
        METADATA
            "DESCRIPTION" "Nombre Calles"
        END  # Metadata

        CLASSITEM   "Nucleo"
        LABELITEM   "Nomres"
        CLASS
            NAME            " "
            EXPRESSION      'Playa'
            COLOR           -1 -1 -1
            SIZE            0
            SYMBOL          0
            LABEL
                ANGLE           AUTO
                COLOR           0 0 0
                TYPE            TRUETYPE
                FONT            arial-italic
                FORCE           TRUE
                SIZE            8
                ANTIALIAS       TRUE
                POSITION        CC
                PARTIALS        FALSE
                MINDISTANCE     0
                BUFFER          0
            END
        END
        CLASS
            NAME            " "
            EXPRESSION      'Pueblo'
            COLOR           -1 -1 -1
            SIZE            0
            SYMBOL          0
            LABEL
                ANGLE           AUTO
                COLOR           0 0 0
                TYPE            TRUETYPE
                FONT            arial-italic
                SIZE            8
                ANTIALIAS       TRUE
                POSITION        UC
                PARTIALS        FALSE
                MINDISTANCE     0
                BUFFER          0

            END
        END
    END
#==============================================
LAYER #obrmay
        NAME        obrmay
        DATA        obrmay
        STATUS      DEFAULT
        TYPE        POINT
        #GROUP       EXPEDIENTES

        PROJECTION
            "init=epsg:23030" # ED(50) UTM ZONA 30
        END
        
        METADATA
            "DESCRIPTION" "Obras mayores"
        END  # Metadata

        MAXSCALE 2001
        LABELITEM   'N_'
        CLASS
            NAME            "Obra Mayor"
            COLOR           255 0 0
            SIZE            2
            SYMBOL          9
            LABEL
                COLOR           255 0 0
                TYPE            TRUETYPE
                FONT            arial
                SIZE            8
                ANTIALIAS       TRUE
                POSITION        UR
                PARTIALS        FALSE
                MINDISTANCE     300
                BUFFER          4
                #MINFEATURESIZE AUTO
            END
            TEMPLATE void
        END
    END
#==============================================
  LAYER #Nucleos
        NAME      Nucleos
        DATA      nucleos
        TRANSPARENCY 50
        STATUS    DEFAULT
        TYPE      POLYGON
        GROUP     CLASIFICACION
        MINSCALE    4999
        PROJECTION
            "init=epsg:23030" # ED(50) UTM ZONA 30
END
        LABELITEM "Nombre"

        METADATA
        "DESCRIPTION" "Clasificacion"
        "RESULT_FIELDS" 
"NOMBRE,INI_PAU,PROV_PAU,DEFI_PAU,INI_PP,PROV_PP,DEFI_PP,PAI,INI_REPAR,FIRM_ADM,INI_URB,DEFI_URB"
        "RESULT_HEADERS" "Nombre,Fecha aprovacion Ini. PAU,Fecha aprovacion 
Pro. PAU,Fecha aprovacion Defi. PAU,Fecha aprovacion Ini. PP,Fecha aprovacion 
Prov. PP,Fecha aprovacion Defi. PP,Fecha aprovacion PAI,Fecha aprovacion Ini. 
Reparcelacion,Fecha Firm Adm. Reparcelacion,Fecha aprovacion Ini. 
Urbanizacion,Fecha aprovacion Defi. Urbanizacion"
        END  #Metadata

        CLASS
            NAME          "Nombre"
            COLOR         224 255 187
            OUTLINECOLOR  0 0 0
            LABEL
                COLOR           0 0 0
                TYPE            TRUETYPE
                FONT            book-antiqua
                SIZE            8
                ANTIALIAS       TRUE
                POSITION        CC
                PARTIALS        FALSE
                MINDISTANCE     300
                BUFFER          4
                #MINFEATURESIZE AUTO
              
            END #CLASS
      TEMPLATE void
    END #LAYER
    END
 #==============================================
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to