Code Monkey home page Code Monkey logo

wme-clicksaver's People

Contributors

mapomatic avatar fuji2086 avatar jm6087 avatar saicode-dev avatar dbsooner avatar

Stargazers

BLK LUV [org] avatar  avatar Arjo avatar  avatar Vinicius avatar  avatar

Watchers

James Cloos avatar  avatar Arjo avatar

wme-clicksaver's Issues

Add buttons to swap alt and primary road names

Button next to each alt. Clicking would swap alt road name <-> primary road name.

  • No button if alt and primary are same name.
  • If swapping primary name into alt would create a duplicate of another alt, just remove alt (?)

Lock buttons not working on some types of objects

when I click on a lock level to lock certain objects (map comments, junction boxes, etc.) the number I click on does not turn blue. Sometimes after a save / refresh the selected level will be indicated (MC), other times (JB) the change is made but none of the levels are colored in. - PesachZ

Add option to auto-set street/city on RR

From steveinark:
Though adding RR is not as common now, as the map has matured, the option to auto-set street/city when creating a Railroad would be a welcome addition.

Translation issues & suggest

Suggest

I suggest a graphic change (to see if you like it).

walking-drive 1

The LINE 550 describes the driving<->walking button with the following code.
before:
                $button.append('<span class="fa fa-arrows-h" style="font-size:20px; color:#e84545;"></span>')
after:
                $button.append('<i class="fa fa-blind fa-lg"></i><i class="fa fa-arrows-h fa-lg" style="color:#e84545"></i><i class="fa fa-car fa-lg"></i>')


Const spaceSaversGroup not defined:

Change the LINE 703 to the following code to make it work:
before:
                        $('<label>', { class: 'cs-group-label' }).text('Time Savers'),
after:
                        $('<label>', { class: 'cs-group-label' }).text(_trans.prefs.spaceSaversGroup),
NOTE: in the Script Translations sheet it is defined as "SPACE SAVERS" and in the Script as "TIME SAVERS".


Other translations

These other phrases do not have a constant defined for translation:

  1. Show "Add alt city" button
  2. Show "Swap driving<->walking segment type" button
  3. Add Alt City
  4. Swap between driving-type and walking-type segments.
    WARNING! This will DELETE and recreate the segment.  Nodes may need to be reconnected.

For options 1, 2 and 3 it is only necessary to change the following code and set the constant es in the external translation file:
LINE 532:
before
                  }).text('Add alt city').click(onAddAltCityButtonClick)
after
                  }).text(_trans.prefs.addAltCity).click(onAddAltCityButtonClick)

LINE 706&707:
before
                            createSettingsCheckbox('csAddAltCityButtonCheckBox', 'addAltCityButton',
                                'Show "Add alt city" button'),
after
                            createSettingsCheckbox('csAddAltCityButtonCheckBox', 'addAltCityButton',
                                _trans.prefs.addAltCityButton),

LINE 709:
before
                                'addSwapPedestrianButton', 'Show "Swap driving<->walking segment type" button') : ''
after
                                'addSwapPedestrianButton', _trans.prefs.addSwapPedestrianButton) : ''

Finally, move the counters to the beginning of the document.
LINE 78: after
               addAltCity: 'Add Alt City',
               addAltCityButton: 'Show "Add alt city" button',
               addSwapPedestrianButton: 'Show "Swap driving<->walking segment type" button'


For option 4 I can't help you, my knowledge of java is very little.

Feature Request - Non-Routable Pedestrian Path

Our region has recently started adding Non-Routable Pedestrian Paths for walking trails. The guideline is no street name, city name if within limits.
Would it be possible to give the option like PLRs have for automatically marking street name "none"?

"Swap pedestrian <-> driving segment type" button doesn't work

In the current WME Prod, the "Swap pedestrian <-> driving segment type" button doesn't work.

The following is shown in the Console:
Uncaught TypeError: Cannot read properties of undefined (reading 'hasPaths')
at HTMLDivElement. (userscript.html?name=WME-ClickSaver.user.js&id=70420b96-96ef-4960-beee-5aba1ef7dd86:708:33)
at HTMLDivElement.dispatch (third_party-ef851593cd95176c.js.gz:2:1740198)
at g.handle (third_party-ef851593cd95176c.js.gz:2:1738193)
(anonymous) @ userscript.html?name=WME-ClickSaver.user.js&id=70420b96-96ef-4960-beee-5aba1ef7dd86:708
dispatch @ third_party-ef851593cd95176c.js.gz:2
g.handle @ third_party-ef851593cd95176c.js.gz:2

Reduce font size on options tab

Some languages (e.g. Portuguese) require more space to display the same text, so it wraps around several lines. Reduce size to make it a little more readable.

Multiple "Add alt city" links appear

Select an event to edit
• Select a single segment and then deselect the segment. An Add Alt City label appears in the Location area.
• Select a single segment and then deselect the segment. An additional Add Alt City label appears.
image

Update narrow street button color

From the forum...

Hello.

Narrows are still in a dark yellow frame (as Private) while they are now dark blue on the map ;)

Thanks for this script.

Caart

Add option to automatically enable U-turns

by Robert04101 » Sat Feb 02, 2019 1:53 pm

As we work to implement the new PLA full-grid layout, I am wasting a lot of time turning on the U-turns at the end of each row. Is ClickSaver an appropriate place to add this functionality? I could imagine either an addition to the Settings (gear icon) "Enable U-turns on new segments" or a keyboard shortcut that, for selected segments, enables U-turns at each end. Either would be a huge time saver.

by JustinS83 » Sat Feb 02, 2019 2:44 pm

WME Context Menu has a button that allows you to enable the uturns on a selected segment.

by Robert04101 » Tue Feb 05, 2019 11:44 am

Close, but what I'd really love is for the Option menu to have an additional choice: under Advanced Preferences, which currently consist of "Draw new roads as two way" "Draw new roads with all turns allowed" and "Select only on empty selection", I'd love "Draw new roads with U-turns allowed."

This would not only be useful for PLRs but also in countries, like India, where U-turns at intersections are allowed unless explicitly prohibited.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.