Closed elles93 closed 1 year ago
It's been a bit since I've used or looked at this script to be honest :sweat_smile:
The last time in #8 I couldn't reproduce the issue at all, but give me some time; but am getting the error now. I'll try to see if I figure it out this time...
It's been a bit since I've used or looked at this script to be honest 😅
The last time in #8 I couldn't reproduce the issue at all, but give me some time; but am getting the error now. I'll try to see if I figure it out this time...
Is there anything I can do to help finding the issue? At the moment, if I press "this is pogo" it hides the COMM, but it doesn't hide links, fields and it doesn't enhance the interaction radius from 40m to 80m
It seems that the IITC APIs have changed. Still investigating...
Will ping you if there's anything to test :+1:
It seems that the IITC APIs have changed. Still investigating...
Will ping you if there's anything to test 👍
Nice, thank you for your time, I'll be here if necessary ;)
It seems that way back in December 2021 IITC-CE simply made the layer-group managing API private.
The odd thing is that it took this long for the script to break. But also, that the docs within the IITC-CE project still mention the window.updateDisplayedLayerGroup()
function even though they've removed it.
Now trying to see if I can still make the same effect without this funciton.
It seems that way back in December 2021 IITC-CE simply made the layer-group managing API private.
The odd thing is that it took this long for the script to break. But also, that the docs within the IITC-CE project still mention the
window.updateDisplayedLayerGroup()
function even though they've removed it.Now trying to see if I can still make the same effect without this funciton.
Should I try writing to the developers of IITC-CE to see if they can revert this o give some more info?
Can you remind me something. What are all the changes that used to happen with the This is PoGO checkbox?
Anything else?
Can you remind me something. What are all the changes that used to happen with the This is PoGO checkbox?
- All portals team colors are reset to orange
- Links and Fields are hidden
And the interaction radius is increased
- But I forget which radius that is. Is it the yellow-orange circle that shows up when we click on a portal?
Anything else?
Yes, it's the orange circle. It's 40meters for ingress and 80meters for PoGo.
Moreover, it hids the ingress comm window and remove portals/mod infos under the portal photo. These two functions are preserved and working despite the error.
So I've updated the script and stopped the error (simply by commenting it out). And so far it does hide the stuff it's supposed to hide, the colors, the fields, the comm window, etc. But it doesn't change the radius because the window.plugin
list too is no longer accessible :no_mouth:
So I've updated the script and stopped the error (simply by commenting it out). And so far it does hide the stuff it's supposed to hide, the colors, the fields, the comm window, etc. But it doesn't change the radius because the
window.plugin
list too is no longer accessible 😶
Quite the irony: the only funcion I needed was the proper drawing of the 80meters radius ahahahah xD Would it be possible to have a function that draws a 80 meters radius around the selected portal? It could be even another radius in addition to the pre-existent 40meter radius.
I noticed that wrong. The plugin is only used on mobile (and presumably works there). On the desktop/browser the window.HACK_RANGE
is changed directly from 40 to 80.
And it still works...if you refresh the page.
Give it a try. Turn on This is PoGO and refresh the page, the yellow-orange radius will increase. (Which it always was for me so I didn't realize it was 80m).
Now, as for why it doesn't automatically switch the radius on toggle. It's because another regression that happened with IITC and I couldn't find a way to force re-rendering the map so that the circle radius changes.
Ok, installed the update and this works wonder.
The radius updates as soon as you click on another portal (as before), no need to refresh the page.
Thank you for the super fast reply! :)
Ah, that makes sense: It's redrawing the circle if we switch portals. No idea why it doesn't do that automatically though. It's not like there was any other function that needed to be called to do that before.
If I find one such function I'll add it in. For now, marking this as resolved.
Have a good day year :D
Hello, i receive this issue when using the "this is pogo" setting.
Error initializing ThisIsPogo: TypeError: window.updateDisplayedLayerGroup is not a function
It used to work properly, this is the first time in 2 years I get this error.
I got this error wether I use the old script by Alfonso, or I use your new script. It happens wether I use tampermonkey or I load the plugin directly into IITCE button.
This issues exists both with chrome and with edge browsers