You're still using v1 code. First you should try to upgrade your code to v2
http://code.google.com/apis/maps/documentation/upgrade.html Another problem would be that the map div is initially hidden. So you should call checkResize() as soon as the map is being displayed. You can also search the archives of this group for 'hidden div' and will find lots of answers http://groups.google.com/group/Google-Maps-API/search?group=Google-Maps-API&q=hidden+div&qt_g=Search+this+group On Feb 19, 3:31 pm, paki ch <[email protected]> wrote: > i moved to GMap2.And as i was doing,i found out the problem.Actually google > map div is in another hidden div and when someone click on link my google > map div appears.When i removed the hidden div and made it block,i get the > marker in the center of my google map.how can i put google map div in hidden > and market at its center? > > On Thu, Feb 19, 2009 at 1:22 AM, [email protected] > <[email protected]>wrote: > > > > > On Feb 18, 12:18 pm, paki ch <[email protected]> wrote: > > > thanks for the suggestions.I will try to make the suggested changes.But > > one > > > thing i wana ask u,u r actually want me to use Gmap 2. > > > Isnt it possible to do the correction with Gmap ,i mean the same version > > > which im using? > > > Possibly, you are welcome to try. But GMap is deprecated and the > > documentation is no longer available. So I don't know if it supports > > the "size" option (but I don't remember that being introduced until > > v2, so I wouldn't expect it to. Mike Williams could probably say for > > sure.). > > > Why would you want to write a new map using V1 of the API? > > > -- Larry > > > > On Thu, Feb 19, 2009 at 12:57 AM, [email protected] < > > [email protected] > > > > > wrote: > > > > > On Feb 18, 11:23 am, paki ch <[email protected]> wrote: > > > > > i was working on local version and i correct the html standard on > > local > > > > > copy. > > > > > I have uploaded it and u can see correct html standard page on the > > link > > > > > >http://www.ezstate.com/beta/index.php?content=result > > > > > > but problem of marker not in the center of google map is still there. > > > > > I don't see any attempt to implement the changes I suggested... > > > > There are problems, and there are problems that cause the "marker not > > > > in the center of google map". > > > > > If you do what I suggested here: > > > >http://groups.google.com/group/Google-Maps-API/msg/c7aa3cd1145e4740 > > > > > (and fix any javascript issues that the browser tells you about), it > > > > centers the marker for me (at least in IE...) > > > > > -- Larry > > > > > > On Thu, Feb 19, 2009 at 12:12 AM, Rossko <[email protected] > > > > > wrote: > > > > > > > > ya i understand the basic structure of html page.My page was not > > > > > > according > > > > > > > to that but at the moment i m just focusing on completing > > > > > > > the google map thing and i thought the html page structure will > > not > > > > have > > > > > > any > > > > > > > effect on google map functionality. > > > > > > > It does have an effect, the maps API relies on a correct DOM in the > > > > > > browser. > > > > > > > > Anyways i have made the page according to html structure but my > > > > problem > > > > > > > remains and that is how can i bring the markers on center of > > google > > > > map > > > > > > in > > > > > > > each listing.I tried map.panTo(point) but its not doing any good. > > > > > > > I don't know. Would you like to share your new page with us? The > > URL > > > > > > you gave earlier still shows the page with no proper HTML > > structure.- > > > > Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
