Marker shifts position (relative to image) when switching from overhead to 45 degree view. Fix?

209 views
Skip to first unread message

Fraggle

unread,
Apr 7, 2012, 2:21:01 PM4/7/12
to google-map...@googlegroups.com
See my question at: http://stackoverflow.com/questions/10056424/marker-shifts-position-relative-to-image-when-switching-from-overhead-to-45-de

Google Javascript Maps API 3.5

Basic issue is that if you have a marker that is over a fixed landmark like a fire hydrant in the overhead view, then you switch to 45 degree view, the marker no longer shows on top of the hydrant. And vice versa (position the marker in 45 degree view then switch to overhead).

To reproduce:

-Create a basic Google Maps web page with a draggable marker. With initial marker/map position over an area with 45 degree imagery available: (try: 33.501472920248354, -82.01948559679795). I'm not certain it shows this problem for all areas so try that point to start.

-Make sure you are zoomed in near the max and in Satellite view

-Turn off 45 degree imagery

-Position marker over fixed point (corner of sidewalk, house chimney, etc)

-change to 45 degree view.

-Note that marker position is shifted

-Try rotating the 45 degree and see how marker shifts relative to original point on image.

-Switch back to overhead and marker is in original spot.

Why its a problem: Don't know what to trust. What view shows the accurate position for that marker? Can't create web pages that allow people to position markers in one view and see them in another. Major inconsistencies.


Enoch Lau (Google Employee)

unread,
Apr 8, 2012, 7:13:46 AM4/8/12
to google-map...@googlegroups.com
If you believe there's a bug in the API, please file an issue here: http://code.google.com/p/gmaps-api-issues/issues/list

In the issue report, please link to a live demo that illustrates the problem. Thanks!

Enoch

Nianwei Liu

unread,
Apr 8, 2012, 7:34:38 AM4/8/12
to Google Maps JavaScript API v3
Elevation could play a role here. There may or may not be a bug in the
current API, but without handling z value, 45 images will likely have
distortion of the location, that's just the nature of the problem
until the API start to request elevation values for the marker and
process it accordingly.


On Apr 7, 2:21 pm, Fraggle <idi...@gmail.com> wrote:
> See my question at:http://stackoverflow.com/questions/10056424/marker-shifts-position-re...<http://stackoverflow.com/questions/10056424/marker-shifts-position-re...>
>
> Google Javascript Maps API 3.5
>
> Basic issue is that if you have a marker that is over a fixed landmark like
> a fire hydrant in the overhead view, then you switch to 45 degree view, the
> marker no longer shows on top of the hydrant. And vice versa (position the
> marker in 45 degree view then switch to overhead).
>
> To reproduce:
>
> -Create a basic Google Maps web page with a draggable marker. With initial
> marker/map position over an area with 45 degree imagery available: (try:
> 33.501472920248354, -82.01948559679795). I'm not certain it shows this
> problem for all areas so try that point to start.
>
> -Make sure you are zoomed in near the max and in Satellite view
>
> -Turn off 45 degree imagery
>
> -Position marker over fixed point (corner of sidewalk, house chimney, etc)
>
> -change to 45 degree view.
>
> -Note that marker position is shifted
>
> -Try rotating the 45 degree and see how marker shifts relative to original
> point on image.
>
> -Switch back to overhead and marker is in original spot.
>
> *Why its a problem*: Don't know what to trust. What view shows the accurate

Paul Goldstein

unread,
Apr 12, 2012, 2:41:54 PM4/12/12
to google-map...@googlegroups.com
I have filed this bug: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4070

Any thoughts on it, work around, etc?

Paul G.

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/bRtw8MVABVEJ.

To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.




Paul Goldstein

unread,
Apr 12, 2012, 2:45:13 PM4/12/12
to google-map...@googlegroups.com
Basically it seems that Google is using a lat/lngs based on an overhead view to determine lat/lng on a tilted view. This is wrong.

Paul G.



--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.




--
Regards,
Paul Goldstein
SkyDroid - Golf GPS
pa...@skydroid.net

Reply all
Reply to author
Forward
0 new messages