trantuanvn / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

Map images load problem #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I open map in FF 11.0 or Chrome 18.0.1025.162 the map and its scripts work 
correct, but sprite images doesn't load and I got message in JS console like 
this:

Resource interpreted as Image but transferred with MIME type text/html: 
"http://maps.googleapis.com/maps/gen_204?ev=api_viewport&cad=src:apiv3".

It is harmless untill you need controlls and baloons. In this case you get 
broken images or no image at all.

I'm developing project with jQuery 1.7.1, jQuery mobile 1.1 and jQuery UI Map 
3.0 RC under Ubuntu 11.10.

Mime type message appears even if I try to open official examples:
http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-google-maps-geocoding
.html

Original issue reported on code.google.com by irs...@gmail.com on 18 Apr 2012 at 4:31

Attachments:

GoogleCodeExporter commented 8 years ago
I've found solution!

Looks like it was a conflict with jQuery Mobile stylesheets.

Just use the latest jquery.mobile-1.1.0.min.css and jquery.mobile-1.1.0.js with 
jQuery Mobile 1.7.2.

Original comment by irs...@gmail.com on 19 Apr 2012 at 9:08

GoogleCodeExporter commented 8 years ago
Great. 

Original comment by johansalllarsson on 20 Apr 2012 at 11:49

GoogleCodeExporter commented 8 years ago
I had the same error and I solved it putting this css constraint:

img {
    max-width: none;
}

Original comment by foreve...@gmail.com on 29 Apr 2013 at 2:03