local.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. L.drawLocal = {
  2. // format: {
  3. // numeric: {
  4. // delimiters: {
  5. // thousands: ',',
  6. // decimal: '.'
  7. // }
  8. // }
  9. // },
  10. draw: {
  11. toolbar: {
  12. // #TODO: this should be reorganized where actions are nested in actions
  13. // ex: actions.undo or actions.cancel
  14. actions: {
  15. title: '取消绘制',
  16. text: '取消'
  17. },
  18. finish: {
  19. title: '结束绘制',
  20. text: '结束'
  21. },
  22. undo: {
  23. title: '删除绘制的最后一个点',
  24. text: '删除最后一个点'
  25. },
  26. buttons: {
  27. polyline: '绘制折线',
  28. polygon: '绘制多边形',
  29. rectangle: '绘制矩形',
  30. circle: '绘制圆',
  31. marker: '绘制标记',
  32. circlemarker: '绘制圆形标记'
  33. }
  34. },
  35. handlers: {
  36. circle: {
  37. tooltip: {
  38. start: '点击和拖动来绘制一个圆型'
  39. },
  40. radius: '半径'
  41. },
  42. circlemarker: {
  43. tooltip: {
  44. start: '点击地图来放置一个圆形标记'
  45. }
  46. },
  47. marker: {
  48. tooltip: {
  49. start: '点击地图来放置一个标记'
  50. }
  51. },
  52. polygon: {
  53. tooltip: {
  54. start: '点击开始绘制图形',
  55. cont: '点击继续绘制图形',
  56. end: '点击第一个点闭合图形'
  57. }
  58. },
  59. polyline: {
  60. error: '<strong>Error:</strong> shape edges cannot cross!',
  61. tooltip: {
  62. start: '点击开始绘制线',
  63. cont: '继续点击绘制线条',
  64. end: '点击最后一个点结束绘制'
  65. }
  66. },
  67. rectangle: {
  68. tooltip: {
  69. start: '点击和拖动来绘制矩形'
  70. }
  71. },
  72. simpleshape: {
  73. tooltip: {
  74. end: '松开鼠标完成绘制'
  75. }
  76. }
  77. }
  78. },
  79. edit: {
  80. toolbar: {
  81. actions: {
  82. save: {
  83. title: '保存更改',
  84. text: '保存'
  85. },
  86. cancel: {
  87. title: '取消编辑,放弃所有更改',
  88. text: '取消'
  89. },
  90. clearAll: {
  91. title: '清除所有图层',
  92. text: '清除所有'
  93. }
  94. },
  95. buttons: {
  96. edit: '编辑图层',
  97. editDisabled: '没有图层可编辑',
  98. remove: '删除图层',
  99. removeDisabled: '没有图层可删除'
  100. }
  101. },
  102. handlers: {
  103. edit: {
  104. tooltip: {
  105. text: 'Drag handles or markers to edit features.',
  106. subtext: 'Click cancel to undo changes.'
  107. }
  108. },
  109. remove: {
  110. tooltip: {
  111. text: 'Click on a feature to remove.'
  112. }
  113. }
  114. }
  115. }
  116. };