Small Marker, Big Marker same code. Why the difference??

153 views
Skip to first unread message

Ice

unread,
Sep 15, 2011, 2:55:59 AM9/15/11
to google-map...@googlegroups.com
Hi

So I've got markers set for a streetview but on some of my maps the
marker seems to be smaller and deeper into the tile image. They both use
the same code but yet I'm getting these discrepancies as you can see by these
live examples.

http://sleeping-out/member_details-MemberID-8856.html(correct marker size)
http://sleeping-out/member_details-MemberID-10677.html(small marker size)

I have tried setting a fixed image size using this code

var  images = { redDot: new google.maps.MarkerImage("/images/lodging.png",new google.maps.Size(16, 16),null,null,null) };
and then I set the marker in the marker options, icon: images.redDot
This has no affect whatsoever though and I still get the same results.

Is there a way around this? Have I done something wrong?

Thanks


MymsMan

unread,
Sep 15, 2011, 3:12:08 AM9/15/11
to google-map...@googlegroups.com
Your links are invalid

Ice

unread,
Sep 15, 2011, 3:23:35 AM9/15/11
to google-map...@googlegroups.com

MymsMan

unread,
Sep 15, 2011, 6:36:26 AM9/15/11
to google-map...@googlegroups.com
I was able to recreate your result on one of my own maps,  basically the marker appears smaller and further away is because it is!
On one of your properties the owner tagged his location right by his front gate and close to the street view camera while on the other property the location tag is in the back garden and much further away from the street view camera.
Googl LatLng coordinates are very accurate so a few metres in placing you map pins can be significant.
There is probably not much you can do about it other than suggest to your property owners that they check their properties on street view and move the map pins close to the main entrance - possibly significant in rural locations where the building may be a significant distance from the nearest street viewed road.

Ice

unread,
Sep 15, 2011, 10:25:45 AM9/15/11
to google-map...@googlegroups.com
Thank you very much for the explanation!!!
Reply all
Reply to author
Forward
0 new messages