Skip to content
shawnbot edited this page Jun 22, 2012 · 1 revision

Layers, Providers and Templates

The biggest change in the 2.0 API is a renaming of MM.TemplatedMapProvider to Template. TemplatedLayer still works as expected:

var layer = new MM.TemplatedLayer("path/to/{Z}/{X}/{Y}.png");

which is the equivalent of this:

var layer = new MM.Layer(new MM.Template("path/to/{Z}/{X}/{Y}.png"));
Clone this wiki locally