GM API 3: google.maps.Circle -> Error parsing value for property z-index. Declaration dropped.

335 views
Skip to first unread message

jakoby84

unread,
Jul 10, 2010, 8:53:00 PM7/10/10
to Google Maps JavaScript API v3
Hello,

I'd like to ask a question and would be grateful if it could be
answered:

In Google Maps API 3, every time a google.maps.Circle is created and
loaded onto the map, my browser (Firefox 3.6.6) throws a warning in
the error console "Error parsing value for property z-index.
Declaration dropped." (translated in my sole discretion from german)

Is that something to be worried about or can I just ignore it? The
code and the functionality works fine, but still there remains the
will to clear up all errors and warnings while developing. So I don't
feel good about it ;)

Obviously it may be a matter of the API implementation because I see
the 'problem' on other websites as well, e.g.
http://code.google.com/intl/de-DE/apis/maps/articles/mvcfun/step4.html

The code I'm working on is
http://checkout.yourweb.de/moscow/index.php?radius=1.5&opacity=0.5&page=queryAbdeckung&submit=Anfrage+abschicken
(shows the areas serviced by moscow metro stations)

Cheers, thanks in advance! Jakob

Pil

unread,
Jul 11, 2010, 5:51:21 AM7/11/10
to Google Maps JavaScript API v3
If you declare unvalid CSS (that may be determined for abnormal
browsers. which is unfortunately necessary very often), Firefox throws
that warning.

If a polyline or polygon is displayed without setting the zIndex
option, Firefox throws that warning.

Firefox always throws that warning if it encounters an unknown or
invalid css declaration.

I'd say it's not nice but it can safely be ignored.




On Jul 11, 2:53 am, jakoby84 <j.altenst...@googlemail.com> wrote:
> Hello,
>
> I'd like to ask a question and would be grateful if it could be
> answered:
>
> In Google Maps API 3, every time a google.maps.Circle is created and
> loaded onto the map, my browser (Firefox 3.6.6) throws a warning in
> the error console "Error parsing value for property z-index.
> Declaration dropped." (translated in my sole discretion from german)
>
> Is that something to be worried about or can I just ignore it? The
> code and the functionality works fine, but still there remains the
> will to clear up all errors and warnings while developing. So I don't
> feel good about it ;)
>
> Obviously it may be a matter of the API implementation because I see
> the 'problem' on other websites as well, e.g.http://code.google.com/intl/de-DE/apis/maps/articles/mvcfun/step4.html
>
> The code I'm working on ishttp://checkout.yourweb.de/moscow/index.php?radius=1.5&opacity=0.5&pa...

Ben Appleton

unread,
Jul 11, 2010, 8:22:52 PM7/11/10
to google-map...@googlegroups.com

Agreed this is harmless. This relates to a bug in which we had tried to use zindex with SVG elements, but most SVG implementations do not support zindex.  We have fixed that bug so these warnings should disappear with this week's release.

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

Reply all
Reply to author
Forward
0 new messages