MarkerImage class properties

82 views
Skip to first unread message

kilkul

unread,
Jun 29, 2010, 8:15:16 AM6/29/10
to Google Maps JavaScript API v3
Why doesn't MarkerImage has any public / documented properties (like
image, for getting its designated image URL)? I've managed, until
today, to "read" it by accessing its Ua property (found by myself, by
"hacking" the class' properties), but it seems to have stopped working
today. I could / will do that "hack" thing again, but it seems such a
"lack of transparency" regarding this class...

kilkul

unread,
Jun 29, 2010, 8:20:57 AM6/29/10
to Google Maps JavaScript API v3
Yeah, it just got renamed to Wa (from Ua).

So, if anyone needs a Marker's MarkerImage image URL, it could be
accessed by marker.getIcon()['Wa']

geoco...@gmail.com

unread,
Jun 29, 2010, 8:36:43 AM6/29/10
to Google Maps JavaScript API v3
On Jun 29, 5:20 am, kilkul <kil...@gmail.com> wrote:
> Yeah, it just got renamed to Wa (from Ua).
>
> So, if anyone needs a Marker's MarkerImage image URL, it could be
> accessed by marker.getIcon()['Wa']

But it will change everytime a new version of the API is released
(unless you use a "hard-coded" version, like 3.0).

-- Larry

>
> On Jun 29, 1:15 pm, kilkul <kil...@gmail.com> wrote:
>
>
>
> > Why doesn't MarkerImage has any public / documented properties (like
> > image, for getting its designated image URL)? I've managed, until
> > today, to "read" it by accessing its Ua property (found by myself, by
> > "hacking" the class' properties), but it seems to have stopped working
> > today. I could / will do that "hack" thing again, but it seems such a
> > "lack of transparency" regarding this class...- Hide quoted text -
>
> - Show quoted text -

kilkul

unread,
Jul 28, 2010, 8:35:38 AM7/28/10
to Google Maps JavaScript API v3
Yeah, I've just seen (now it's Xa)... Why??


On Jun 29, 1:36 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:

Ben Appleton

unread,
Jul 28, 2010, 8:47:56 AM7/28/10
to google-map...@googlegroups.com

We release updates approximately weekly.  We use Closure Compiler to compress our code, which renames variables between builds.

> --
> 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.
>

kilkul

unread,
Aug 2, 2010, 7:30:45 PM8/2/10
to Google Maps JavaScript API v3
OK, but can't the MarkerImage get some additional properties (for
example, to get its URL), so I won't have to hack into my JS after
each release?
> google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2Bunsu...@googlegroups.com>
> .> For more options, visit this group at
>
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

Rossko

unread,
Aug 2, 2010, 7:57:06 PM8/2/10
to Google Maps JavaScript API v3
> OK, but can't the MarkerImage get some additional properties (for
> example, to get its URL), so I won't have to hack into my JS after
> each release?

Why not just remember what you set the image to in the first place?

William

unread,
Aug 2, 2010, 8:31:47 PM8/2/10
to Google Maps JavaScript API v3
On Aug 3, 9:30 am, kilkul <kil...@gmail.com> wrote:
> OK, but can't the MarkerImage get some additional properties (for
> example, to get its URL)

I think that's because some of the optional properties are calculated
asynchronously (once the image has been retrieved for the first
time). Certainly getUrl() would be possible because it's a mandatory
constructor parameter. In the meantime you could write a wrapper
class extending MarkerImage with this method.

...
Reply all
Reply to author
Forward
0 new messages