azgs / azgs-leaflet Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
i am looking for implementing a search with intersect on wfs
Layers I'm bringing in through ESRI rest services aren't removed from the map when I uncheck them in a layers control (L.Control.Layers). Got any advice?
wfs is working right with the current version of leaflet? I had some problems but finally I get it working... also an example of wfs.ClickResponse or some documentation, it will be helpfull.
Greet's,
Renato Duarte.
<script type="text/javascript" src="/leaflet-0.5.1/js/lib/less-1.2.2.min.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/lib/jade.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/lib/proj4js-1.0.3/lib/proj4js-compressed.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/TileLayer.Bing.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/TileLayer.ESRI.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/GeoJSON.WFS.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/GeoJSON.WFS.ClickResponder.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/Popup.Centered.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/Control.Hover.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/Control.Panel.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/Marker.AttributeFilter.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/JadeContent.js"></script>
<script type="text/javascript" src="/leaflet-0.5.1/js/azgs-leaflet/DateFilter.js"></script>
var southWest = new L.LatLng(47.0, 41.3),
northEast = new L.LatLng(68.6, 17.5),
bounds = new L.LatLngBounds(southWest, northEast);
var map = L.map('map').setView([57.3, 29.4], 7).setMaxBounds(bounds);
var mapnik = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {maxZoom: 18, attribution: "Map data © <a href='http://osm.org'>OpenStreetMap</a> contributors"});
var geojsonWfsLayer = new L.GeoJSON.WFS("/geoserver/wfs", "vae:planet_osm_polygon", {
// pointToLayer: function(latlng) { return new L.CircleMarker(latlng); },
// popupObj: new JadeContent("templates/example.jade"),
// popupOptions: { maxWidth: 530, centered: false },
// hoverFld: "name"
});
map.addLayer(geojsonWfsLayer);
not showing WFS layer(but in openlayers its ok) and what is "vae"?
Is it possible to apply filters other than dates on WFS layers? For example,
filter=naturalwetland
I can see that the attributes can be used to style features, and that the date option code could be generalised to allow one to pass other filter options so that I could like to constrain the request to a subset of features to keep the data transfer fast.
I'd also like to filter by BBOX, I've looked at the code but it doesn't appear as though this is being done automatically by the area currently in view so a manual BBOX override would be useful.
Very sorry if this is a stupid question!
Hi there,
First, thanks for this plugin.
I'm working with Leaflet 0.4 and I found an issue with dynamic attributions when using other layers.
The problem is when you change layer to Bing, sometimes it won't show Bing's attribution but it will appear only when you change to another layer.
I think it comes from the dynamic attribution that answer after attribution control does its effect, so the attribution known by the control is null and the attribution is updated by the Bing layer after that.
Sorry for my technical english, it's not so good.
I have been pinging my WFS and it returns a simple geoJSON String. When i print out my wfsLayer, it says that the geoJson is null?? Any idea of what is happening? I just used the code from the example:
var wfsLayer = new L.GeoJSON.WFS("http://1.4.5.6:8080/test/test", "feature&BBOX=-17.6774861,85.5654917,-11.6632806,85.5699611", {
pointToLayer: function(latlng) { return new L.CircleMarker(latlng); },
popupObj: new JadeContent("templates/example.jade"),
popupOptions: { maxWidth: 530, centered: false },
hoverFld: "name"
});
map.addLayer(wfsLayer);
console.log(wfsLayer);
This is what I get back when i ping my WFS:
{
type:"feature",
properties: {
name: "Hello World!",
description: "My first popup!"
},
geometry: {
type:"Point",
coordinates: [35.23,-117.65]
}
}
And Here is the message i get when i ping my WFS:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.