File: Provider.js

package info (click to toggle)
modestmaps-js 3.3.6%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,184 kB
  • ctags: 1,465
  • sloc: makefile: 58
file content (11 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
describe('Providers', function() {
    // Currently not testing subdomain-based templatedmapprovider, since
    // the implementation should be kind of undefined.
    it('basic templatedmapprovider', function() {
        var p = new MM.Template(
            'http://{S}.tile.openstreetmap.org/{Z}/{X}/{Y}.png', ['a']);

       expect(p.getTile(new MM.Coordinate(1225, 1832, 12))).toEqual(
          'http://a.tile.openstreetmap.org/12/1832/1225.png');
    });
});