Skip to content

Conversation

@alexandre-melard
Copy link
Contributor

you need to add a dependency to https://github.com/mylen/leaflet.TileLayer.WMTS in order to make it work.
You can use it like that:

    angular.extend($scope, {
        lyon: {
            lat: 45.7071,
            lng: 4.9625,
            zoom: 12
        },
        layers: {
            baselayers: {
                wmts: {
                    name: 'IGN',
                    url: "http://wxs.ign.fr/" + "YOURKEY" + "/geoportail/wmts",
                    type: 'wmts',
                    layerParams: {
                        layer: "GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN-EXPRESS.STANDARD",
                        style: 'normal',
                        tilematrixSet: "PM",
                        format: 'image/jpeg',
                        attribution: "&copy; <a href='http://www.ign.fr'>IGN</a>"
                    }                    
                }
            }
        }
    });

you need to add a dependency to https://github.com/mylen/leaflet.TileLayer.WMTS in order to make it work.
You can use it like that:
```
    angular.extend($scope, {
        lyon: {
            lat: 45.7071,
            lng: 4.9625,
            zoom: 12
        },
        layers: {
            baselayers: {
                wmts: {
                    name: 'IGN',
                    url: "http://wxs.ign.fr/" + "YOURKEY" + "/geoportail/wmts",
                    type: 'wmts',
                    layerParams: {
                        layer: "GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN-EXPRESS.STANDARD",
                        style: 'normal',
                        tilematrixSet: "PM",
                        format: 'image/jpeg',
                        attribution: "&copy; <a href='http://www.ign.fr'>IGN</a>"
                    }                    
                }
            }
        }
    });
```
@tombatossals
Copy link
Owner

Fantastic addition @mylen, thank you

tombatossals added a commit that referenced this pull request Feb 9, 2014
added support for wmts layers
@tombatossals tombatossals merged commit f5b923b into tombatossals:master Feb 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants