My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3908: MarkerImages are not scaled anymore
23 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  [email protected]
Closed:  Feb 2012


Sign in to add a comment
 
Reported by [email protected], Feb 8, 2012
The newest version of the API has broken the scaling of marker images.
Feb 8, 2012
#1 [email protected]
Going back to 3.6 fixed it so it looks like it is 3.7. 

3.7: http://icloudy.me/E25v 
3.6: http://icloudy.me/E1cN
Feb 9, 2012
#3 [email protected]
What browser(s) does this affect?

Feb 9, 2012
#4 [email protected]
If you could add an example that clearly demonstrates the issue, that would help reproduce the bug.
Feb 9, 2012
Project Member #5 [email protected]
 Issue 3907  has been merged into this issue.
Feb 9, 2012
#6 [email protected]
I have the same issue with IE8 only
Feb 10, 2012
#7 [email protected]
How do I request a merge? I have the same issue in  issue 3917  with example attached.
Feb 11, 2012
#9 [email protected]
Seen on Firefox 9.0.1 and 10.0.1.
Feb 12, 2012
#10 [email protected]
 Issue 3917  has been merged into this issue.
Feb 12, 2012
#11 [email protected]
(No comment was entered for this change.)
Status: Acknowledged
Labels: Type-Defect ApiType-Javascript3 Regression-Yes Internal-6002711
Feb 16, 2012
#12 [email protected]
Seems to have been fixed? I'm certainly not having my error any longer.
Feb 16, 2012
#13 [email protected]
I also have no errors. Seems to been fixed yeah.

Feb 16, 2012
#14 [email protected]
Yep, looks like we've been bumped up to 3.8 and this has been fixed in that verison.
Feb 16, 2012
#15 [email protected]
Is there a changelog for 3.8 anywhere? I've not seen it on the official releases.
Feb 16, 2012
#16 [email protected]
The issue still occurs on IE8!
Feb 17, 2012
#17 [email protected]
I can also confirm that the issue still occurs in IE7 and IE8, works in IE9 though
Feb 17, 2012
#18 [email protected]
I had the same issue on IE9 two days ago. Today on the same browser I get a small part of the image with the scaled size, but it is not the image scaled down, it's a part of the image. This applies to Win7/64 system.

On another a Vista32 system with the same IE9 the images are correct.
Screendumps.zip
92.5 KB   Download
Feb 18, 2012
#20 [email protected]
I fixed mine by making sure to use a full absolute url for the image file.
Feb 18, 2012
#21 [email protected]
Actually, it was fixed only in the sense that they are showing up now, and at the right size, but they're still blurrier than they should be (just like the default marker).
Feb 19, 2012
#22 [email protected]
Hi all, yes, this was fixed. Scaled markers are now rendered using Canvas, which is why you may have noticed the difference in interpolation.
Status: Fixed
Feb 20, 2012
#23 [email protected]
Hi, we are still having problems with this. We are using a google map with marker overlays (setting a circle as an icon, which we then scale). It's still not working properly in IE7 or IE8, but renders fine on all other tested browsers. I will add screen-shots here to show what I mean.


ie8.png
523 KB   View   Download
ie9.png
520 KB   View   Download
Feb 20, 2012
#24 [email protected]
Hi, please reopen the ticket! It's definitely not fixed in IE8! 
I am using a sprite image for the marker, where I set the origin point and also the scaled size parameters in order to adapt marker's size according to the current zoom level.

Code example:
new google.maps.MarkerImage(markerImageURL, new google.maps.Size(40, 40), new google.maps.Point(0, 0), new google.maps.Point(20, 20), new google.maps.Size(40, 1120)

I don't have this problem in Chrome or Safari.

Thx
Feb 20, 2012
#25 [email protected]
Hi, I am also still having problems in IE8 (similar like blue circles above). However when marker is set as editable, then image is scaled properly.
Feb 20, 2012
#26 [email protected]
I would also like to add my nomination for this to be reopened.
Feb 21, 2012
#27 [email protected]
So setting optimized to false causes the api to not use canvas to render the markers, is that true?

To you guys who are still having issues, have you tried optimized: false?
Feb 21, 2012
#28 [email protected]
You are correct, the following works well:

optimized: !(jQuery.browser.msie && jQuery.browser.version < 9)

However, one could argue that this should have been handled at the maps api side, but nevertheless, as long as there's a workaround, I'm satisfied. Thanks!
Feb 21, 2012
#29 [email protected]
Setting optimized: false in MarkerOptions resolved the issue in IE8. 

Thanks for the support!
Feb 21, 2012
Project Member #30 [email protected]
If you continue to see issues with scaled markers in IE, please provide a link to a simple demo that illustrates the combinations of MarkerImage parameters that cause the problem. Thanks.
Feb 29, 2012
#31 geocodezip
See an issue here in IE:
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_KML_samples_zoom_false.html

now get "undefined" is null or not an object in IE8

used to work.
Feb 29, 2012
#32 geocodezip
See an issue here in IE:
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_KML_samples_zoom_false.html

now get "undefined" is null or not an object in IE8

used to work.
Feb 29, 2012
Project Member #33 [email protected]
Could you isolate the error in a demo that just uses scaled markers (the subject of this issue) please?
Feb 29, 2012
#34 [email protected]
The problem still exists with IE 8 and Windows Vista. Here the requested simple demo:
http://www.harsch-tracking.de/problem/hallowelt.html


Feb 29, 2012
Project Member #35 [email protected]
I see. The rendering of the marker itself should be fixed in an upcoming release of the nightly version very soon.

You mentioned that you are getting JS errors about "undefined"? I couldn't see that in the hallowelt.html demo.
Feb 29, 2012
#36 [email protected]
The "undefined" problem was one of a different user. I only have the problem with the marker images. This was the reason for the hallowelt.html demo
Feb 29, 2012
Project Member #37 [email protected]
Sure, if you can illustrate the "undefined" problem with a simple demo, I'd be glad to take a look at that too.
Mar 1, 2012
#38 geocodezip
I am getting an error in Chrome as well
v3_geoxml3_KML_samples_zoom_false.html:28
Uncaught TypeError: Cannot read property 'width' of undefined

looks like it is on the shadow of the marker.  I was travelling yesterday, I will put together a simple example as time permits.

Here is a (admittedly not much simpler) link that just shows one marker and generates the error in IE8 (and Chrome):

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?lat=37.422505&lng=-122.085795&zoom=18&type=m&filename=kml_samples_1.xml

Mar 2, 2012
#39 geocodezip
Here is an example that shows the issue:
http://www.geocodezip.com/v3_Google_examples_icon-complexA.html

There are supposed to be four markers on that map, only one displays.

The shadow doesn't have a scaledSize, which is an optional parameter (the shadow image also doesn't exist, which might also be an issue).

Setting optimized to false fixes the problem:
http://www.geocodezip.com/v3_Google_examples_icon-complexB.html
 

Jun 21, 2012
#40 [email protected]
How is this bug marked "fixed" if images are still blurry on retina devices on 3.9? Yeah, we can use the workaround of optimized: false for retina only, but is this really the solution? 
Sign in to add a comment

Powered by Google Project Hosting