-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Support Niantic's Geospatial Browser as an alternative map link #777
Comments
Because of the requirement to have a Lightship Developer account, it is better that it be a third-party plugin |
As a counter point: The sync plugin requires a Google account. If that plugin was proposed today, would you have the same opinion? (Obviously, it is a special case since Ingress started internally at Google and required a Google account, so it made sense back then.) |
Imho the point wasn't about the account, but rather about its purpose. Yeah, we all know how it is since it's enough to create some account without any proof of the "developer" part, but including such a plugin in core IITC could bring more people/players there - which I guess NIA really don't want. |
What about a "Bring Your Own URL" feature that could take a handful of tokens that get replaced? For example, in Python I might do an f-string like:
Oh, MDN suggests that JS can do nested templates, so maybe such a feature would be possible without manual parsing of the template. |
That sounds interesting. But I'd say this is certainly something for community plugins, not for the core plugins. |
Is there documentation about how to maintain a community plugin? I see https://github.com/IITC-CE/Community-plugins/blob/master/CONTRIBUTING.md, but I'm not sure how write and build a plug in outside of forking IITC and dropping it into the plugins directory. I suppose I could add a (I don't use tg, hence asking here :-) |
https://github.com/IITC-CE/ingress-intel-total-conversion/wiki/Your-First-Plugin |
Come to TG, the whole ingress is there including us 😉 But to answer... This is pretty much up to you. It's enough to have the js file available somewhere. It just needs to be a proper userscript. Maybe you can start with a simple js file, or explore repositories of others (don't look at mine, it's a mess 🤭) |
Now the list of links of the "Map links" dialog is generated in the function window.showPortalPosLinks I'm just refactoring that file #773 and you gave a good idea to allow plugins to easily extend the list of such links. Now the plugin has to interfere with the function and rewrite the code of the displayed links, but it would be better to put them in a separate array |
I had looked at a few, but still garnered no clue. That's why for my personal projects, I just used the whole code base (https://github.com/nexushoratio/ingress-intel-total-conversion/tree/explore) |
I know it says "this PR is big enough" but.... I just noticed that sync.js uses a custom made |
Would you all be willing to take patches to enhance the build system to enable additional directories for plugins? Personally, I've always like the dead simple way that the IITC stuff build, and would prefer to continue to use that method. But, if I could say, register extra plugin directories in
If so, I'd write up a new issue for such a thing. |
That's somewhat close to my plugin share-by-coords |
Out of curiosity, is there any drawback to adding some of these to the Community Plugins? |
I think what you want is already possible. Try this command
|
None, I just didn't take the time to do it. |
The
Map links
currently supports Google, Bing, and OSM maps.Would supporting Niantic's own site be of interest?
The URL appears to be:
https://lightship.dev/account/geospatial-browser/{lat},{lng},{zoom},,{guid}
Where , are the center of the map (which may or may not be the portal), standard map zoom, and guid of the portal.
For example:
https://lightship.dev/account/geospatial-browser/37.423521,-122.089649,20,,09d5d1e149014c70ba3154fe3421e2a6.12
One problem with this is for it to be usable, one much actually have a Lightship Developer account.
On the other hand, it is a great way to see information like the description without having to switch over to the Scanner. And other details like VPS status.
The text was updated successfully, but these errors were encountered: