> Please note this stuff > i add one > > map.addcontrol(new GSize(1010,500)); > the exact size of my div where i wanna display the map
You can't just make up methods for the API. Where in the documentation does it say "add a control of unspecified type to set the map size"? Where in the advice so far did it say "add a control"? If you're going with fixed pixel size, just put it in the map <div> instead of the % size. There's an example here - http://www.easypagez.com/maps/ieworking.html If you want to specify the size to the GMap2 object, use the documented method - http://code.google.com/apis/maps/documentation/reference.html#GMapOptions There's an example here - http://www.easypagez.com/maps/ieworking.html If you want to make a future-proof map, follow the guidance and put your map creation code inside a function to be called on page load, like the initialize() routine here - http://code.google.com/apis/maps/documentation/introduction.html#GMap2 or move your script to the end of page as advised here http://www.easypagez.com/maps/ieworking.html the script itself does not need to be in the table or near the <div> where the map is going to go good luck, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
