MapsSDK-Unity icon indicating copy to clipboard operation
MapsSDK-Unity copied to clipboard

MapPin.ShowOutsideMapBounds ignored by MapPinLayer

Open fra3point opened this issue 4 years ago • 1 comments

[SDK version: 0.11.0]

The field MapPin.ShowOutsideMapBounds would be a very useful thing, if fully supported. We plan to use it to fake large map overlays (i.e. hot areas, interest areas, etc) istead of providing custom layers, which happens to be quite difficult.

The checkbox shows up in the MapPin component's inspector, but it doesn't work at runtime. Looking in the MapPinLayer script, I've found a comment (line 16) saying MapPin.ShowOutsideMapBounds is not used by the layer. Any out of view pin will be hidden.

Is this by design? Is there something I am missing?

fra3point avatar Jun 25 '21 13:06 fra3point

That's currently a limitation of the MapPinLayer. More work needs to be done to support this concept plus clustering.

ShowOutsideMapBounds field should have an effect when used on MapPins that are immediate children of the MapRenderer GO (i.e. not using a MapPinLayer).

kircher1 avatar Jun 25 '21 16:06 kircher1