L.drawLocal = { // format: { // numeric: { // delimiters: { // thousands: ',', // decimal: '.' // } // } // }, draw: { toolbar: { // #TODO: this should be reorganized where actions are nested in actions // ex: actions.undo or actions.cancel actions: { title: '取消绘制', text: '取消' }, finish: { title: '结束绘制', text: '结束' }, undo: { title: '删除绘制的最后一个点', text: '删除最后一个点' }, buttons: { polyline: '绘制折线', polygon: '绘制多边形', rectangle: '绘制矩形', circle: '绘制圆', marker: '绘制标记', circlemarker: '绘制圆形标记' } }, handlers: { circle: { tooltip: { start: '点击和拖动来绘制一个圆型' }, radius: '半径' }, circlemarker: { tooltip: { start: '点击地图来放置一个圆形标记' } }, marker: { tooltip: { start: '点击地图来放置一个标记' } }, polygon: { tooltip: { start: '点击开始绘制图形', cont: '点击继续绘制图形', end: '点击第一个点闭合图形' } }, polyline: { error: 'Error: shape edges cannot cross!', tooltip: { start: '点击开始绘制线', cont: '继续点击绘制线条', end: '点击最后一个点结束绘制' } }, rectangle: { tooltip: { start: '点击和拖动来绘制矩形' } }, simpleshape: { tooltip: { end: '松开鼠标完成绘制' } } } }, edit: { toolbar: { actions: { save: { title: '保存更改', text: '保存' }, cancel: { title: '取消编辑,放弃所有更改', text: '取消' }, clearAll: { title: '清除所有图层', text: '清除所有' } }, buttons: { edit: '编辑图层', editDisabled: '没有图层可编辑', remove: '删除图层', removeDisabled: '没有图层可删除' } }, handlers: { edit: { tooltip: { text: 'Drag handles or markers to edit features.', subtext: 'Click cancel to undo changes.' } }, remove: { tooltip: { text: 'Click on a feature to remove.' } } } } };