[Google Maps API v2] Re: Search box on the map itself
>The problem now the
> box is outside the map. How can I have the box say at left top of my
> map itself.
I think you have two options:
create a custom control, as described here:
http://code.google.com/apis/maps/documentation/javascript/v2/controls.html#Custom_Controls
or else make a div for your search box and append it to your map div,
like I did here:
http://www.xelawho.com/map/
I went with option 2 because it seems that making an input box a
GControl removes some of the normal behaviors associated with an input
box (click and drag to select text was one that I can remember, but
there were others).
hope that helps.
--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home