Skip to content
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

Show PolyZone on map #90

Open
kywan opened this issue Nov 9, 2021 · 1 comment
Open

Show PolyZone on map #90

kywan opened this issue Nov 9, 2021 · 1 comment

Comments

@kywan
Copy link

kywan commented Nov 9, 2021

Describe the solution you'd like
polyzone can be show on map easly with the leaflet polygon

Additional context
It will be good to show some SafeZone, Parking

@TGRHavoc
Copy link
Owner

TGRHavoc commented Nov 10, 2021

Hey!

I'm just going to comment on this for other's/future self:

This sounds like it could be fun to implmemt. It would require a few changes to the server resource to allow this intergration.
We could listen for their polyzone:print* events and then parse it for LiveMap but, we would then have to keep an eye on PolyZone to make sure that their zone structure doesn't change drastically and mess things up.

We could store these zones either in the current "blips.json" file or, we can create a new file "poly_zones.json" or something.
Obviously, this would have to be an "opt-in" feature of the resource.

Then, we could have something in the config of the interface to enable certain intergrations or, we can have it on a new endpoint of the server. Either option would end up looking something like

integrations : {
    polyZone: true/false,
    someOtherIntergration: true/false
}

Once we have the in-game coords, transform them to leaflet lat lang and display on the map. Maybe a new option on the client to enable/disable intergrations as well? So a user can enable/disable stuff as they whish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants