I'm making a map with pictures using javascript and google maps API 3.
Because I need to show a lot of pictures, so I want to use the thumbnail data stored in the exif headers, hoping that the API doesn't have to process the whole JPEG files.
I did some tests and with syntax below it seems that the API doesn't use the thumbnail in mypicture.jpg
var marker = new google.maps.Marker({
position: latlng,
map: map,
icon: { url: "myurl/mypicture.jpg",
scaledSize: new google.maps.Size(40,30)
}
});
I tested this by extracting the thumbnails, placing a big red dot over them and inserting them back using jhead. I don't see my red dots appear on the map.
Is there a way to tell the api to just use the thumbnail instead of getting and resizing the full 2-3MB picture?
I also managed to extract the binary thumbnail data myself (using an XMLHttpRequest and ExifParser), so if the api would somehow allow me to pass the binary data for the marker image locally, I'd be happy as well.