angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
314 stars 134 forks source link

Navionics - Overlay issue #117

Open nmccready opened 9 years ago

nmccready commented 9 years ago

From @dud3 on September 23, 2015 22:51

@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.

Copied from original issue: tombatossals/angular-leaflet-directive#958

nmccready commented 9 years ago

From @dud3 on September 23, 2015 23:5

cc: @nmccready

nmccready commented 9 years ago

From @dud3 on September 25, 2015 19:23

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?

nmccready commented 9 years ago

From @elesdoar on September 25, 2015 20:22

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