Hello,

I was wondering if it would be possible to use a sprite image from css
to save http requests on maps api v3 ?

var marker = new google.maps.Marker({
        position: latlng,
        icon: '/img/flags_iso/24/ ' + country_code + '.png',
        map: map,
});

to something like:

        icon: '<span class="flags  ' + country_code + '"></span>',


css:
.flag{ background: url("/img/flags16.png") no-repeat; display: block;
float: left; padding-right: 5px; height: 16px; width: 16px; }
.us{background-position:0 -3648px;}

Thanks,

Andras

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to