tombatossals / angular-leaflet-directive

AngularJS directive to embed an interact with maps managed by Leaflet library
http://tombatossals.github.io/angular-leaflet-directive
MIT License
1.5k stars 635 forks source link

Navionics - Overlay issue #958

Closed dud3 closed 9 years ago

dud3 commented 9 years ago

@tombatossals I'm trying to use the following service: http://webapiv2.navionics.com/examples/5000_LeafletSupport.html

Checking the examples, the overlays are added like the following:

...    
            layers: {
                    overlays: {
                        wms: {
                            name: 'EEUU States (WMS)',
                            type: 'wms',
                            visible: true,
                            url: 'http://suite.opengeo.org/geoserver/usa/wms',
                            layerParams: {
                                layers: 'usa:states',
                                format: 'image/png',
                                transparent: true
                            }
                        }
                    }
            }
...

The example from the link above tells:

var map = L.map('nautical-map-container');

var overlay=new JNC.Views.LeafletNavionicsOverlay({
    navKey: 'navionics_key',
    chartType: JNC.NAVIONICS_CHARTS.NAUTICAL,
    isTransparent: true,
    zIndex: 1
}));

overlay.addTo(map);

How would we add this overlay using angular-leaflet directive ?

Thanks.

dud3 commented 9 years ago

cc: @nmccready

dud3 commented 9 years ago

Anyone ?

nmccready commented 9 years ago

Sorry I don't have time to look at this until next week. I have family from out of town around. @elesdoar maybe?

elesdoar commented 9 years ago

Sorry, neither do I, I am so busy for this days, I could look at this until after next Wednesday. :cry:

nmccready commented 9 years ago

This issue was moved to angular-ui/ui-leaflet#117

dud3 commented 9 years ago

I'm actually using leaflet without angular for this one, but it would be cool if we could through angular-leaflet as well.

tombatossals commented 9 years ago

I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it.