WME

Helper class for Greasy Fork plugins for Waze Map Editor

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/452563/1218878/WME.js

作者
Anton Shevchuk
版本
0.0.3
创建于
2022-10-06
更新于
2023-07-12
许可证
MIT

WME

Tiny class for Greasy Fork plugins for Waze Map Editor

Require Script

// @require https://greasyfork.org/scripts/452563-wme/code/WME.js

Methods

  • WME.getVenues(except = []) – return Array of venues, except some categories
  • WME.getSegments(except = []) – return Array of segments, except some road types
  • WME.getSelected() – return Array of the selected models, which you can edit(!)
  • WME.getSelectedVenue() – return model of the selected venue, which you can edit(!)
  • WME.getSelectedVenues() – return Array of the selected venues models, which you can edit(!)
  • WME.getSelectedSegment() – return model of the selected segment, which you can edit(!)
  • WME.getSelectedSegments() – return Array of the selected segments models, which you can edit(!)
  • WME.getSelectedNode() – return model of the selected node, which you can edit(!), or null
  • WME.getSelectedNodes() – return Array of the selected nodes models, which you can edit(!)

Links

Author homepage: http://anton.shevchuk.name/
Script homepage: https://github.com/AntonShevchuk/wme
GreasyFork: https://greasyfork.org/en/scripts/452563-wme