Giter VIP home page Giter VIP logo

azgs-leaflet's People

Contributors

rclark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

azgs-leaflet's Issues

wfs is working right?

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.

Not working...

                    <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 &copy; <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"?

Filters on WFS?

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!

Attributions is buggy with 0.4

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.

WFS geoJSON= NULL

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:

wfs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.