Thank you! Confirmed as working. It actually took more processing /
transfer time to fetch marker images using this approach.

Our experimental setup was:

MySQL TEXT data fields containing base64 encoded image binary data.
Our PHP script fetched the images from the database, put them in a
JSON array along with other marker information and passed that array
over to Google Maps.

On Jan 10, 9:07 pm, Ben Appleton <[email protected]> wrote:
> On Mon, Jan 11, 2010 at 12:47 PM, Kirill <[email protected]> wrote:
> > Yup, I tried:
>
> > new google.maps.MarkerImage('data:image/
> > png;base64,iVBORw0KGgoAAAAN...'
>
> Try the following syntax:
> new google.maps.MarkerImage({
>   icon: 'data:image/png;base64,iVBORw0KGgoAAAAN...'
>
> });
>
> This works for me in Firefox 3.5.7, Chrome and Safari 4.0.3 (all on Windows 
> XP).
>
>
>
> > Nothing came up. No errors and no markers.
>
> > On Jan 10, 2:54 pm, Ben Appleton <[email protected]> wrote:
> >> I believe this just works.  Have you tried passing a base64 data url to
> >> MarkerImage?
>
> >> On Sun, Jan 10, 2010 at 8:15 AM, Kirill <[email protected]> wrote:
> >> > We have many custom markers and don't want people to have to download
> >> > markers that they do not need. We are already using dynamically
> >> > generated sprites that have all of our markers:
>
> >> >http://mobile.cityredbird.com/markers_1262979319.png
>
> >> > Is it possible to store individual markers encoded in base64 in our
> >> > database and then inline HTML output 'data:image/png;base64' on-demand
> >> > into the MarkerImage function?
>
> >> > The reason why we don't want to use the traditional approach is we're
> >> > trying to cut down on number of HTTP requests due to mobile
> >> > constraints.
>
> > --
> > 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 
> > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.
-- 
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