Git Product home page Git Product logo

wme-urmp's People

Contributors

abelter avatar dalverson avatar jangliss avatar

Watchers

 avatar  avatar  avatar

wme-urmp's Issues

URMP doesn't show on beta v2.180

Elements being created cannot find the list items in beta because they are now nested an additional layer down.

Update code to use the "official" script method to add sidebar item.

beta release changed layers

Layers no longer accessed via W.map.<layerName> but by W.map.getLayerByName. Update code to use new layer fetching method.

Update code to use new Issues tracker

Use new issues tracker to fetch issues. This will allow pulling the missing types, as well as pull in the new "suggestions" issues.

Sample fetch syntax to query state of Texas (countryId and stateId):

fetch("https://www.waze.com/Descartes/app/v1/Issues/Search/List", {
  "headers": {
    "accept": "*/*",
    "accept-language": "en-US,en;q=0.9",
    "cache-control": "no-cache",
    "content-type": "application/json; charset=utf-8",
    "pragma": "no-cache",
    "sec-ch-ua": "\"Not.A/Brand\";v=\"8\", \"Chromium\";v=\"114\", \"Google Chrome\";v=\"114\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "x-csrf-token": "HIDEYHIDEY"
  },
  "referrer": "https://www.waze.com/en-US/editor/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "{\"bbox\":null,\"cityId\":null,\"countryId\":235,\"fromCreationTime\":null,\"fromUpdateTime\":null,\"managedAreaId\":null,\"stateId\":100000050,\"toCreationTime\":null,\"toUpdateTime\":null,\"userPropertiesFilter\":{\"isStarred\":false},\"mapUpdateRequestsFilter\":{\"commentCountRanges\":[{\"from\":0,\"to\":0},{\"from\":1,\"to\":1},{\"from\":2,\"to\":2},{\"from\":3,\"to\":3},{\"from\":4,\"to\":null}],\"fromLastCommentTime\":null,\"lastCommentBy\":null,\"toLastCommentTime\":null,\"commentedByUser\":false,\"hasDescription\":null,\"isOpen\":true,\"page\":1,\"reportedByUser\":false,\"resolvedByUser\":false,\"sources\":null,\"types\":null},\"mapProblemsFilter\":{\"isOpen\":true,\"page\":1,\"types\":null}}",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

Response contains a mapIssues object that includes summary data, including if there are more objects to possibly return for that type. For example:

    "mapIssues": {
        "mapUpdateRequests": {
            "objects": [
                {
                    "mapIssueId": 15492375,
                    "updateTime": 1689891093405,
                    "isStarred": false,
                    "isRead": false,
                    "nativeId": 10885851
                }
            ],
            "hasMore": true

Repeat query above, but increment page: # to next number until hasMore: false.

Memory Issues

After long periods of time using URMP, memory becomes bogged down, and reload is required

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.