On Mar 31, 12:33 pm, TraderZed <[email protected]> wrote: > Hey there, I'm currently building out a map that requires a single latlong > coordinate and image (to be used as an overlay) via a CMS. Because I'm only > getting in the one coordinate, I'm unable to use bounds, and I need to > position the overlay centered over top of this coordinate. > > Is this even possible? I imagine that zoom would cause it to break without > bounds. > > If this *is* possible, how would it be done? I feel like I've kind of tried > everything. I got it working using Markers and Labels with CSS and negative > percents to position the div, but it doesn't scale with zoom. > > Any help would be appreciated!
How do you expect the API to scale the image? You need to specify the bounds you want it to cover. You can calculate them from its size and the center point. -- Larry > > Zack -- 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.
