-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom markers are not displayed properly #183
Comments
Mmmm, don't really know what could be the change here. I changed the google maps api version I require, my tests seemed fine but I can't see any other reason why this would fail. Could you try playing with the google maps version number? PS: I love your icon :) |
Ok, I'll try that. ps: thanks, but I did not create it, it's from this huge collection: http://mapicons.nicolasmollet.com/ |
Ok, it's because the google maps api version... |
that's what I feared... known bug or implementation to change in the gem? |
I have no idea, I'll try to find out. |
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3908 Looks like this guy was having the same problem with 3.7. What makes me sad is that it's supposed to be fixed in 3.8 :( Noooo. If you wanna take a look at the changelog: http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog
|
It should not be a big deal if 3.8 is backward compatible... |
The thing is, your last gmaps4rails version uses 3.8, and my icons are still messed up... |
sorry didn't realize... damn it! so maybe the js syntax changed a bit... It's always a pain to debug such issues. |
They seem to say that it's still not fixed in IE, and some guy is getting an error on chrome (no errors for me), and they mention that setting the "optimized" option to false solved the problem. Also, seems like this page talks about the same solution. I tried that, but it didnt work:
I guess I'll go read the doc on how to pass options to all markers. |
Ok. I was a bit fed up by the useless course to have all options so I ended up adding a
|
Fiiiiiiiixed! |
Thanks for your help :) Why does |
I love this kind of news :) |
it's a string because it's supposed to be a json hash I simply merge with the one I build from other data.
|
Yeah, the problem comes from the use of canvas for rendering the markers now, by default, and it seems like other map tiles are hiding the markers (that's why some of them are rendered fine, they're not overlaping). Don't know why it does not work on my chrome though. |
I see :) |
Thanks, fixed it for me too. |
What browser are you using? Just curious to see if I'm the only with this problem on chrome ^^. |
It was chrome and also saw it on safari too. |
Ok, thanks. I have no idea how they thought it was fixed in 3.8 then... |
Just wanted to add that I was having this problem with my custom marker icons until I switched from: marker.picture to marker.picture |
You're right, it works! No need for optimized: false when using integers. The doc should be edited then: https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Markers Thanks :) |
Good to hear, could you update the wiki please? Sent from my iPhone On 16 avr. 2012, at 14:53, niuagereply@reply.github.com wrote:
|
Done (https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Controller). Hey apneadiving, could you take a look at my stack-overflow question regarding infowindows for polygons? :D http://stackoverflow.com/questions/10170883/polygon-infowindows-in-gmaps4rails |
I edited the markers page. |
@AhmerArif : just answered your question on SO |
@apneadiving If any one have any idea about this problem please reply? Model Action def gmaps4rails_address def full_address(city_id,state_id,country_id) Controller Action def edit_content VIEW <%= gmaps4rails(@location_json) %> Issues for me.
Thanks |
all divs are not coming for google maps in gmaps4rails |
Hey,
I just updated to the last version (1.4.8) from 1.4.3 and my custom markers are not displayed properly, as you can see in the following pic:
This is how I customize the markers:
Also, note that it's not only the marker image that is cut, the clickable zone is as small as the image.
Did something changed related to how I need to specify the size of the markers? I really dont know what's going on since some of the markers (the majority actually) are displayed properly.
Thanks.
The text was updated successfully, but these errors were encountered: