WMS GetFeatureInfo

1,068 views
Skip to first unread message

Raphael Saldanha

unread,
Nov 22, 2013, 9:12:52 AM11/22/13
to leafl...@googlegroups.com
Hi folks!

I'm pretty new to Leaflet and Javascript, and I'm trying to create a simple map with some points and popup with the attribute table. The WMS layers is fine, but no popup.

Details:
  • With L.TileLayer.Wms the layer isn't show, then I'm using L.tileLayer.betterWms (from https://gist.github.com/rclark/6908938 )
  • WMS layer comes from Geoserver, installed on the same server;
  • Server: Ubuntu 32
  • Ports: because of port restrictions, I'm using these port forwarding schema:
    • Client 8080 --> server:80
    • Client 8081 --> server:8080

Here is the link for the webpage:

http://plangeo.dyndns-ip.com:8080/leaflet/teste4.html

I have made severals tests, but without success.

Thanks in advance!


Raphael Saldanha
Brazil

Diego Guidi

unread,
Nov 22, 2013, 10:01:01 AM11/22/13
to leafl...@googlegroups.com
On Fri, Nov 22, 2013 at 3:12 PM, Raphael Saldanha <rfsal...@gmail.com> wrote:
> Here is the link for the webpage:
> http://plangeo.dyndns-ip.com:8080/leaflet/teste4.html
> I have made severals tests, but without success.

Flease fix the demo page, L.tileLayer.betterWms looks not existent


Diego Guidi

Diego Guidi

unread,
Nov 22, 2013, 10:08:08 AM11/22/13
to leafl...@googlegroups.com
ok works with firefox but not with chrome.
try with an older leaflet version first, i.e: 0.6.x
to me looks that the plugin you're using is not compatible with newer versions

Diego Guidi

Raphael Saldanha

unread,
Nov 22, 2013, 10:41:06 AM11/22/13
to leafl...@googlegroups.com
Thanks Diego!

As you suggested, I had changed to 0.6.4, but not works also... But I don't really need to use this plugin, that was just a try. Is there a more recommended way to use WMS and GetFeatureInfo?


--

---
You received this message because you are subscribed to the Google Groups "Leaflet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Diego Guidi

unread,
Nov 22, 2013, 11:31:40 AM11/22/13
to leafl...@googlegroups.com
On Fri, Nov 22, 2013 at 4:41 PM, Raphael Saldanha <rfsal...@gmail.com> wrote:
> Is there a more recommended way to use WMS and GetFeatureInfo?

You can adapt the code of the plugin, looks very self-explainatory.



Diego Guidi
Reply all
Reply to author
Forward
0 new messages