Some javascript/style in this post has been disabled (
why?)
Message
I
assume that you are looking for the layerObj method queryByPoint(). I
don't have an example for you though.
David.
queryByPoint( mapObj
map, pointObj
point, int mode, float buffer ) : int
Query layer at point location specified in georeferenced map coordinates
(i.e. not pixels). The query is performed on all the shapes that are part of a
CLASS that contains a TEMPLATE value or that match any class in a layer that
contains a LAYER TEMPLATE value. Mode is MS_SINGLE or MS_MULTIPLE depending on
number of results you want. Passing buffer <=0 defaults to tolerances set in
the map file (in pixels) but you can use a constant buffer (specified in ground
units) instead. Returns MS_SUCCESS if shapes were found or MS_FAILURE if nothing
was found or if some other error happened.
I’m stuck and I don’t know where
to go from here. I need to search a layer by latitude/longitude, but I don’t
see this available in the API. How is this done? What I want to do is take an
address, geocode it to produce the lat/long coordinate, and use it to query my
shape file. I feel I may be missing a step.
Greg