Explorar el Código

Add ability to provide a URL dictionary for multires tiles.

pull/1121/head
Matthew Petroff hace 2 años
padre
commit
b29cbeda17
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. +4
    -1
      src/js/libpannellum.js

+ 4
- 1
src/js/libpannellum.js Ver fichero

@@ -1115,7 +1115,10 @@ function Renderer(container, context) {
this.level = level;
this.x = x;
this.y = y;
this.path = path.replace('%s',side).replace('%l0',level-1).replace('%l',level).replace('%x',x).replace('%y',y);
// Use tile key if paths need to be looked up in a dictionary, which needs a `tileKey` entry
var p = typeof path === 'object' ? path.tileKey : path;
p = p.replace('%s',side).replace('%l0',level-1).replace('%l',level).replace('%x',x).replace('%y',y);
this.path = typeof path === 'object' ? path[p] : p;
this.parentPath = parentPath;
}



Cargando…
Cancelar
Guardar