Thank you Mike.

 

Yes, I guess that this is what I need. I’ll try it.

 

Regards.

 

JJ.

 

From: Mike Grogan [mailto:[email protected]] 
Sent: Wednesday, August 12, 2015 7:39 PM
To: Jair Santos <[email protected]>
Cc: GeoServer Mailing List List <[email protected]>
Subject: Re: [Geoserver-users] Tooltips in the map.

 

Jair, 

 

I might not be understanding your question exactly, but are you trying to just 
get details back about point, polygon, and lines at a particular location in 
your GeoServer hosted map?  If so and you are using WMS, then you can just have 
your client application issue a WMS GetFeatureInfo request, which will return 
all of the attributes of the features at that location. 

 

See 
http://docs.geoserver.org/stable/en/user/services/wms/reference.html#getfeatureinfo
 

 

I hope I have understood your question correctly.  

 

- Mike Grogan

 

 

On Wed, Aug 12, 2015 at 8:54 PM, Jair Santos <[email protected] 
<mailto:[email protected]> > wrote:

Hello all,

 

I would like to ask some suggestions about the best way to do the following:

 

I have three layers 

a)      points 

b)      polygons

c)       lines

 

I would like to show information about them in tooltips in the map. The 
information will be retrieved from PostGIS. 

How the points, polygons and lines cab be individualized in the layer?  

 

The layers are  generated like.

 

new ol.layer.Image({

    source: new ol.source.ImageWMS({

      url: 'http://192.168.1.113:8080/geoserver/wms',

      params: {'LAYERS': 'watermains'},

     projection: projection,

      serverType: 'geoserver'

    })

  }),

 

Points in the layer are a single feature, but I need to identify each point 
(polygons, lines) in order to show the information about each one.

 

I notice that Geoserver shows the feature type details in the Edit Layer page. 
Do you think that this information can help me in any way?

 

I’ve been checking Freemarker to get the info from PosGIS but this won’t help 
unless I am able to match point (polygons, lines) with their location in the 
layer.

 

Any help will be very much appreciated.

 

Thanks.

 

JJ.

 

 

 


------------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
[email protected] 
<mailto:[email protected]> 
https://lists.sourceforge.net/lists/listinfo/geoserver-users

 

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to