JasonSanford / leaflet-vector-layers

A little help to viewing ArcGIS Server, Geocommons, Arc2Earth, CartoDB, GIS Cloud, etc. vector data in a Leaflet map
http://jasonsanford.github.io/leaflet-vector-layers
BSD 2-Clause "Simplified" License
216 stars 61 forks source link

support for GeoServer #15

Open brianyoungblood opened 12 years ago

brianyoungblood commented 12 years ago

Would be nice to also include support for json output from GeoServer. I just found this project, and will fork and work on it hopefully soon. If you think it's low hanging, please add it on the next release. Would be really useful for many.

JasonSanford commented 12 years ago

I've a local branch for this but apparently haven't pushed up here. So hold off on too much work. I'll updated this thread.

JasonSanford commented 12 years ago

I'm getting started on this. Do you know of any public GeoServer instances I can use to test/demo?

brianyoungblood commented 12 years ago

We have GeoServer behind a proxy, but the wfs service can be queried if you want some points. Let me know if that works for your testing.

public map

http://www.tolerance.org/mix-it-up/map

simple bbox query: http://www.tolerance.org/geoserver/wfs?propertyName=nid%2Cncestype%2Ctype%2Cname%2Cmaddress%2Cmcity%2Cmstate%2Cmzip&service=WFS&version=1.0.0&request=GetFeature&typeName=tolerance%3Asplc_mixitup_schools&outputFormat=json&CQL_FILTER=BBOX(geopoint%2C-82.957763671875%2C34.00713506435885%2C-90.648193359375%2C30.287531589298727)

On Thu, May 17, 2012 at 12:08 AM, Jason Sanford < reply@reply.github.com

wrote:

I'm getting started on this. Do you know of any public GeoServer instances I can use to test/demo?


Reply to this email directly or view it on GitHub:

https://github.com/JasonSanford/leaflet-vector-layers/issues/15#issuecomment-5758363

rinkurajat commented 12 years ago

@JasonSanford and @brianyoungblood Hello Jason/Brian

Will it possible for you to include me as a contributor for this. After lot of searching on my part for the right technology I have narrowed down on GeoWebServer + GeoWebCache on AWS EC2 with Leaflet + Leaflet Vector Layer for my web based GIS app for Indian subcontinent.

@JasonSanford : i have sent you an email in this regards as well.If possible please answer the queries I have wrt to leaflet vectorlayer

Regards Rajat Agarwal www.geoindia.info www.i-geo.net/dev/home.htm

rclark commented 12 years ago

I built this functionality (sort of) into a set of Leaflet extensions: https://github.com/azgs/azgs-leaflet

I extended the GeoJSON layer to make WFS GetFeature requests. Geoserver's WFS implementation will spit out GeoJSON as an outputFormat, so it works smoothly.

My code could use some work, and may or may not be applicable to your framework here, but if you're not too far into an implementation yet or it needs a reboot, I'd be interested in trying to help.

While it would be nice to see a true WFS implementation for Leaflet, using the GeoJSON output from Geoserver is a nice way to short-circuit your way into supporting vector data from another server application.