3

I'm working on a Google Maps application (V.3) with a Street View component. The application takes position data collected from a mobile device and displays it as a Polyline on the map and then plays a corresponding set of Street View panoramas to recreate the User's path. As part of this, I am displaying Markers on the panorama to show the path over the next handful of steps.

This is working fine at this stage of development. However, if a Marker is behind/within a building or around a corner, it is being rendered such that, as an example, it gives the appearance that the user is slowly climbing up the side of the building. What I would like to do is determine if a Marker would be hidden and prevent its rendering.

I notice that when hovering over the panorama, there seems to be a kind of "wall detection" feature going on. I haven't found a way to do this in the documentation, but is there a way to detect these walls programmically? I have been playing around with the number of Markers to show and other strategies that work "okay", but if this is possible, it would be the best solution.

Thanks.

4

0 回答 0