Hi.
Are you implying that canvas markers will only be used if a
MarkerImage is constructed with a string URL only?
And that using the 'full' MarkerImage constructor with all properties
set will cause non-optimised markers?
Or could the scaled size be passed as null to acheive optimised canvas
markers?
Martin.
On Oct 14, 12:37 am, Ben Appleton <
apple...@google.com> wrote:
> Your code triggers the older DOM markers as it specifies a scale:
> icon: new google.maps.MarkerImage(
> '
http://viewranger.com/buddybeacon/v2/images/markers/marker_FF0000.png',
> new google.maps.Size(15,20), // original size
> new google.maps.Point(0,0), // origin
> new google.maps.Point(8,20), // anchor
> new google.maps.Size(15,20) // scaled size
> )
> instead if you pass
> icon: '
http://viewranger.com/buddybeacon/v2/images/markers/marker_FF0000.png'
> you'll get the faster Canvas markers.
>
> - Ben
>
> On Thu, Oct 13, 2011 at 7:39 AM, Kristóf Kótai <
kotai.kris...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi there,
> > I know this issue has been posted probably a couple of times, and the
> > answer was always that we should use the clustering lib to avoid putting too
> > many MarkerImages on the map.
>
> > But my question is something else: If I put 400 Markers (using the default,
> > Google's marker image as an icon) then why is the map really fast? And if I
> > use a custom icon, no matter how detailed, if it's transparent or not, it
> > will be a 100 times slower.
>
> >
http://www.viewranger.com/kristof/p1.html(Google's icon)
> >
http://www.viewranger.com/kristof/p2.html(My icon)