Skip to content

Commit

Permalink
V. 5.4.5 fix for streetnames without states
Browse files Browse the repository at this point in the history
  • Loading branch information
bedo2991 committed Jul 27, 2023
1 parent 60ccc23 commit 6369b69
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 174 deletions.
34 changes: 28 additions & 6 deletions gcc-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,17 @@ let StreetAttributes;
* street:StreetAttributes,
* }}
*/

let AddressAttributes;

let AddressObject ={
'attributes':AddressAttributes,
//@return {boolean}
/** @typedef {Object} AddressObject */
const AddressObject = {
/** @type{AddressAttributes} */
'attributes' : {},

/**@return {boolean} */
hasState: function(){},
//@return {string}

/** @return {string} */
getStreetName: function(){},
};

Expand Down Expand Up @@ -229,14 +232,27 @@ const W = {
'unsavedActionsNum': function () { },
},
'topCountry': {
/**@type{string} */
/** @returns {number} */
getID(){},
/**@type{string} @deprecated */
'abbr': '',
/**@type{string} @deprecated*/
'env': '',
/**@type{number} @deprecated*/
'id': 0,
/** @type{Object.<string, number>} @deprecated*/
'defaultLaneWidthPerRoadType': {},

'attributes':{
/**@type{string} */
'abbr': '',
/**@type{string} */
'env': '',
/**@type{number} */
'id': 0,
/** @type{Object.<string, number>} */
'defaultLaneWidthPerRoadType': {},
}
},
'streets': {
/** @type{Object.<number, StreetAttributes>} */
Expand Down Expand Up @@ -1006,6 +1022,9 @@ const Waze = {
/** @return {boolean} */
isOneWay() { }

/** @return {string|null} */
getState() { }

/** @return {boolean} */
isInRoundabout() { }

Expand Down Expand Up @@ -1040,6 +1059,9 @@ const Waze = {
/** @return {NodeAttributes} */
getAttributes() { }

/** @return {string|null} */
getState() { }

/** @return {boolean} */
isOneWay() { }

Expand Down
2 changes: 1 addition & 1 deletion header.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Street Vector Layer
// @namespace wme-champs-it
// @version 5.4.4
// @version 5.4.5
// @description Adds a vector layer for drawing streets on the Waze Map editor
// @match https://www.waze.com/editor*
// @match https://beta.waze.com/editor*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svl",
"version": "5.4.4",
"version": "5.4.5",
"description": "Street Vector Layer (SVL)\r The Road layer for the Waze editors, made by editors.",
"main": "svl.user.js",
"watch": {
Expand Down
Loading

0 comments on commit 6369b69

Please sign in to comment.