Skip to content

options not defined #3

@dcdieci

Description

@dcdieci

I don't get the example code to run because of an console error:

            var map = L.map("map-canvas", {
                attributionControl: false,
                zoomControl: false
            }).setView(L.latLng(47.491695, 11.095498), 12);




            var baseLayer = new L.TileLayer('http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg', {
                filter: function () {
                    new L.CSSFilter(this, {
                        filters: ['saturate(200%)']
                    }).render();
                }
            });
            map.addLayer(baseLayer);

throws an error

Uncaught ReferenceError: options is not definedL.ChannelFilters.Matrix.L.ChannelFilter.extend.initialize @ leaflet-tilefilter.self.js?body=1:657e @ leaflet.js:6(anonymous function) @ leaflet-tilefilter.self.js?body=1:1044
scaffold.self.js?body=1:3 5

with leaflet version: http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js

Help would be appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions