Tag Info

Hot answers tagged

3

I think what you want to do is make a slippy map, right? This is very easy with Leaflet and GeoServer, so long as you only want to view information. In GeoServer, style a layer, and test it. Then, with Leaflet, add the layer from GeoServer via WMS. Example is included below, replace all the with your values: <link rel="stylesheet" ...


2

There are a lot of options. OpenLayers or Leaflet are probably a good place to start for the client side and they can read local shapefiles. For more options have a look at the OsGeo website (especially note the webmapping links on the right hand side).


2

Your OpenLayers.Layer.WMS statements should look like this: basemap = new OpenLayers.Layer.WMS( "Layer Name1", "http://localhost:8080/geoserver/wms/workspacename", {layers: 'workspacename:layername'} );\ utility = new OpenLayers.Layer.WMS( "Layer Name2", "http://localhost:8080/geoserver/wms/workspacename", {layers: 'workspacename:layername', ...


1

I have used similar functionality in my map. -Created doIdentify() function and called on click event. function doIdentify(evt) { app.map.centerAndZoom(evt.mapPoint,6); } You can check sample code at JSFiddle. Please let us know if you get any error message.


1

I don't think leaflet supports WFS till now. OSM uses tile server where the actual images are stored as tiles and served to clients, whereas in geoserver the actual data is vector and images are made on client request and served. I don't know much about leaflet but openlayers supports both tiled and untiled WMS. there is no need to configure geoserver for ...



Only top voted, non community-wiki answers of a minimum length are eligible