Files
MapLibreParticleLab/test/fixtures/resources/style.json
Thiago Marcos P. Santos 6ef6591a52 Add MockFileSource and MockView for testing the ResourceLoader
- MockFileSource
  Will load pre-defined resources from the filesystem. It supports
  passing a string, that when it matches an URL, will simulate a failure.

- MockView
  It is just a no-op to not get in the way when testing
  resource loading.

Few more additions:

- style.json
  Specially crafted style that will look always for the same tile,
  glyph range, etc at the "test/fixtures/resources/" path. No matter
  where you look (or at what zoom), you always get the same stuff.

- vector.pbf
  This taken from a part of Taipei that will request several glyph
  ranges.
2015-05-22 10:44:18 +03:00

32 lines
744 B
JSON

{
"version": 1,
"name": "Test",
"sources": {
"compositedsource": {
"url": "test/fixtures/resources/source.json",
"type": "vector"
}
},
"sprite": "test/fixtures/resources/sprite",
"glyphs": "test/fixtures/resources/glyphs.pbf",
"layers": [{
"id": "road",
"type": "symbol",
"source": "compositedsource",
"source-layer": "road_label",
"layout": {
"text-font": "Open Sans Regular, Arial Unicode MS Regular",
"text-field": "{name_en}"
}
}, {
"id": "poi",
"type": "symbol",
"source": "compositedsource",
"source-layer": "poi_label",
"layout": {
"text-font": "Open Sans Regular, Arial Unicode MS Regular",
"icon-image": "{maki}_icon"
}
}]
}