live_map-interface icon indicating copy to clipboard operation
live_map-interface copied to clipboard

Show PolyZone on map

Open kywan opened this issue 3 years ago • 1 comments

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

kywan avatar Nov 09 '21 12:11 kywan

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.

TGRHavoc avatar Nov 10 '21 10:11 TGRHavoc