loleaflet: fixed typo

This commit is contained in:
Mihai Varga 2015-09-02 14:27:29 +03:00
parent 7d1625e938
commit bbc65ebeb0
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ var deps = {
deps: ['TileLayer']
},
WriterTileLayer: {
CalcTileLayer: {
src: ['layer/tile/CalcTileLayer.js'],
desc: 'Calc tile layer.',
deps: ['TileLayer']

View file

@ -90,13 +90,13 @@ L.Socket = {
// first status message, we need to create the document layer
var command = this.parseServerCmd(textMsg);
var docLayer = null;
if (command.style === 'text') {
if (command.type === 'text') {
docLayer = new L.WriterTileLayer('', {
edit: this._map.options.edit,
readOnly: this._map.options.readOnly
});
}
else if (command.style === 'spreadsheet') {
else if (command.type === 'spreadsheet') {
docLayer = new L.CalcTileLayer('', {
edit: this._map.options.edit,
readOnly: this._map.options.readOnly