No, rather the marker scaling triggers the slower DOM markers.

Android brevity
On Oct 13, 2011 9:45 PM, "Martin™" <[email protected]> wrote:

> 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 <[email protected]> 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 <[email protected]
> >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)
> >
> > > I tried to optimise the custom icon as best as I could, but when I
> found
> > > out that even using a 5x5 pixel big icon (non-transparent, only #ffffff
> > > colored pixels) and the map is still unbelievably slow, I started
> windering
> > > what kind of magic icon does google use? Why can't I create such a
> good,
> > > optimised icon?
> >
> > > Is it even possible to create an optimised icon? Or is Google cheating
> in
> > > someway?
> >
> > > --
> > > 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/-/9fmhHrHRU5UJ.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
> --
> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to