[ka-Map-users] ka-Map-users Digest, Vol 46, Issue 2

Hussain Hashmi tohashmi at gmail.com
Sun Feb 8 01:04:13 EST 2009


Hello Bob !

Hiliting a feature on map would require you to add another layer for
hiliting.
For example, the way i do hilite as follows:

First, define the hiliting style:

  SYMBOL
    NAME 'circle'
    TYPE ELLIPSE
    FILLED TRUE
    POINTS 1 1 END
  END

Secondly, add a layer for hiliting:

  LAYER
    NAME 'districts_selection'
    DATA './districts'
    TYPE polygon
    STATUS off
    MINSCALE 9500
    METADATA
      "tile_source" "nocache"
    END
    CLASSITEM "OBJECTID"
    CLASS
      EXPRESSION ([OBJECTID] in '%districts_ids%')
      STYLE
        COLOR -1 -1 -1
        OUTLINECOLOR 115 223 255
        SYMBOL 'circle'
        SIZE 5
      END
    END
  END #end layer
Then, pass the ObjectID of the selected feature which needs to be hilited
to the new layer in map file..

Hope it helps.

cheers !
Mir Hashmi


On Sat, Feb 7, 2009 at 8:00 PM, <ka-map-users-request at lists.maptools.org>wrote:

> Send ka-Map-users mailing list submissions to
>        ka-map-users at lists.maptools.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.maptools.org/mailman/listinfo/ka-map-users
> or, via email, send a message with subject or body 'help' to
>        ka-map-users-request at lists.maptools.org
>
> You can reach the person managing the list at
>        ka-map-users-owner at lists.maptools.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ka-Map-users digest..."
>
>
> Today's Topics:
>
>   1. Hilite selected feature in Ka-Map (Bistrais, Bob)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 6 Feb 2009 13:42:24 -0500
> From: "Bistrais, Bob" <Bob.Bistrais at maine.gov>
> Subject: [ka-Map-users] Hilite selected feature in Ka-Map
> To: <ka-map-users at lists.maptools.org>
> Message-ID:
>        <
> 4EFF8BB964547748A07CA32961810C0412C48356 at SOM-TEAQASMAIL1.som.w2k.state.me.us
> >
>
> Content-Type: text/plain; charset="us-ascii"
>
> I have been modifying the Search tool in Ka-Map to select and zoom to
> features.  One thing I would also like to do is hilite the selected
> feature.  I have Querymap enabled in my master .map file (each map layer
> is an Include file called from the master .map file).  I have been
> looking at some of the files (simplequery, index_query, etc), and I have
> also been looking in the archives of this list,  but I can't figure out
> how to hilite the selected feature.  Can anyone give me any pointers?
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.maptools.org/pipermail/ka-map-users/attachments/20090206/1c9674fd/attachment-0001.htm
>
> ------------------------------
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
>
> End of ka-Map-users Digest, Vol 46, Issue 2
> *******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20090208/1fab24b5/attachment.htm 


More information about the ka-Map-users mailing list