user1051849
user1051849

Reputation: 2337

lng and lat lines on google maps v3 in chrome

I'm getting unwanted longitudinal at latitudinal grid lines turning up on my google maps v3 maps when viewed in chrome. They appear whether i turn the map styling off or not. Any ideas what could be causing this? something to do with the container styling?

Thanks

Maps V3 lines in chrome

Upvotes: 1

Views: 773

Answers (2)

user1051849
user1051849

Reputation: 2337

it turns out that it is because of the browser's zoom not being set to 100% (cmd +/-) ... if the zoom was set to something other than 100% then the maps api would show these lines on chrome (on my machine).

Upvotes: 1

Bertuz
Bertuz

Reputation: 2566

I experienced exactly the same problem, so I tried to dig into this issue. I was using a local apache webserver to check my webpages, so I used to type

http://localhost/path/to/the/page/with/the/map

By trying to view my page with localhost as a domain, the problem went off. So I tried to reach my page by replacing localhost with my IP address and voila! The problem disappeared.

To try yourself the problem and the solution, you can simply copy and paste the first offical google maps guide's example and try to view it by addressing it both through localhost and your IP address

offical google maps example

Hope it helps

Upvotes: 0

Related Questions