[mapserver-users] Get Feature Info into gmaps balloon
gzambotti
g.zambotti at gmail.com
Mon Jan 26 10:29:36 PST 2009
Hi Guillaume,
Perhaps you have some idea...
I would like to have more control on GetFeatureInfo
into my Google Maps balloon.
For instance instead of seeing:
GetFeatureInfo results: Search returned no results
when I don't have information.
I would like to see something like (No info for this point).
Do I have to work with the template html
and maybe javascript?
Have any one wrote something like this.
Again many thanks
Best,
Giovanni
many thanks Guillaume
it works fine now!
Best
Giovanni
On Fri, Jan 23, 2009 at 5:42 PM, Guillaume Sueur-2 (via Nabble) <
ml-user+137812-417701502 at n2.nabble.com<ml-user%2B137812-417701502 at n2.nabble.com>
> wrote:
> try with :
> using unique gid
> in your data string
>
> regards
>
> guillaume
>
> gzambotti a écrit :
> > Hi there,
> >
> > I am new with mapserver.
> > I use a WMS/mapserver (4.9) to Get Feature Info into a google maps
> balloon.
> > If I set my mapfile to a shapefile everything works very well.
> > When I try to use PostGIS I get this error (Content-type:
> > application/vnd.ogc.se_xml ).
> > any idea?
> >
> > many thanks, Giovanni
> >
> > Here my mapfile:
> >
> > LAYER
> > NAME "ED_Total"
> > MINSCALE 1000000
> > CONNECTIONTYPE postgis
> > CONNECTION "user=africamaps password=j0kerz dbname=africamaps
> > host=localhost port=5432"
> > #DATA "the_geom from ED_Total using unique gid USING
> SRID=4326"
> > DATA "the_geom from (select gid, NAME, CITY, STATE,
> the_geom
>
> > from ED_Total) as foo using unique the_geom using SRID=4326"
> > #DATA "/opt/CGA/data/vec/gio1/shapefile/EDtotal"
> > TYPE POINT
> > METADATA
> > "wms_title" "ED_Total"
> > "wms_srs" "EPSG:4326 EPSG:900913 EPSG:41001 EPSG:54004"
> > 'wms_include_items' 'all'
> > "wms_onlineresource"
> > "
> http://cga-3.hmdc.harvard.edu/cgi-bin/mapserv?map=/opt/CGA/newam/htdocs/gtest/ednet.map&"
>
> > "ows_exceptions_format" "application/vnd.ogc.se_xml"
> > "wms_exceptions_format" "application/vnd.ogc.se_xml "
> > "wms_exceptions_format" "application-vnd.ogc.se_inimage"
> > "wms_ature_info_mime_type" "text/html"
> > END
> > STATUS ON
> > PROJECTION "+init=epsg:4326"
> > END #projection
> > CLASS
> > NAME "lt 1"
> > STYLE
> > COLOR 255 255 250
> > SYMBOL 'circle'
> > SIZE 8.5
> > END
> > STYLE
> > COLOR 255 0 0
> > SYMBOL 'thickcross'
> > SIZE 7.5
> > END
> > END #class
> > HEADER "/opt/CGA/newam/htdocs/gtest/header.html"
> > TEMPLATE "/opt/CGA/newam/htdocs/gtest/query.html"
> > FOOTER "/opt/CGA/newam/htdocs/gtest/footer.html"
> > END #layer
> >
> >
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2206440&i=0>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> ------------------------------
> This email is a reply to your post @
> http://n2.nabble.com/Get-Feature-Info-into-gmaps-balloon-tp2206135p2206440.html
> You can reply by email or by visting the link above.
>
>
--
Giovanni Zambotti
34 Prince st, Cambridge MA
02139 USA
Phone: (617) 492 - 0359
--
View this message in context: http://n2.nabble.com/Get-Feature-Info-into-gmaps-balloon-tp2206135p2219684.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list