loleaflet: fixed typo
This commit is contained in:
parent
7d1625e938
commit
bbc65ebeb0
2 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ var deps = {
|
|||
deps: ['TileLayer']
|
||||
},
|
||||
|
||||
WriterTileLayer: {
|
||||
CalcTileLayer: {
|
||||
src: ['layer/tile/CalcTileLayer.js'],
|
||||
desc: 'Calc tile layer.',
|
||||
deps: ['TileLayer']
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue