microsoft / MapsSDK-Unity

This repository contains samples, documentation, and supporting scripts for Maps SDK, a Microsoft Garage project.
MIT License
652 stars 127 forks source link

MapPin.ShowOutsideMapBounds ignored by MapPinLayer #123

Closed fra3point closed 8 months ago

fra3point commented 3 years ago

[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?

kircher1 commented 3 years ago

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).