On Oct 10, 3:13 am, Alexey <[EMAIL PROTECTED]> wrote:
> On Oct 9, 6:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On Oct 9, 8:44 am, Alexey <[EMAIL PROTECTED]> wrote:
>
> > > Hi all!
>
> > > 1)
> > > I use geocoder tosearchthe point on the map base on the address.
> > > Then I use setCenter function to center the map to fount point. Can
> > > Google Map APIs suggest me "optimal" zoom level based onsearch
> > > address? For example, if Isearch"London", zoom level should be 10,
> > > but if Isearch"Milan, via Indipendenza 65", zoom should be 16 etc.
>
> > Coming soon...
> > bounds extent in the geocoder response
>
> > from 
> > thissearch:http://groups.google.com/group/Google-Maps-API/browse_frm/thread/cbd7...
>
> > This 
> > thread:http://groups.google.com/group/Google-Maps-API/browse_thread/thread/5...
>
> > > 2) can I case map's state between post backs?
>
> > Not sure what you are asking.  Perhaps you can explain more clearly.
>
> >   -- Larry
>
> Thank you, Larry
>
> Regarding point 1, I will try to implement it.
> Point 2:
>
> I use this code to create the map:
>
> var map;
>
> fnction initialize(cid, lat, lng, zoom) {
>             if (GBrowserIsCompatible()) {
>
>                if(map == null){
>                    map = new GMap2(document.getElementById(cid));
>
>                    map.addControl(new GLargeMapControl());
>                    map.addControl(new GMenuMapTypeControl());
>                    map.enableScrollWheelZoom();
>                 }
>                 ......
>
> The map is situated inside UpdatePanel (Asp.Net). After partial
> (updated only page part inside update panel) postback, variable map is
> still initiated, but there is no any picture inside the map (only
> GLargeMapControl and GMenuMapTypeControl). To solve the problem it's
> necessary to reinitialize the map variable.
>
>  var map;
>
> fnction initialize(cid, lat, lng, zoom) {
>             if (GBrowserIsCompatible()) {
>
>              map = new GMap2(document.getElementById(cid));
>
>              map.addControl(new GLargeMapControl());
>              map.addControl(new GMenuMapTypeControl());
>              map.enableScrollWheelZoom();
>
> Is there possibility to update the map (execute request to load map's
> picture) without recreating the map?
Please post a link to your map.  I can't see where you are
initializing the map (calling map.setCenter(...) for the first time).
See the documentation:
http://code.google.com/apis/maps/documentation/introduction.html#Initializing_the_Map

"this method must be sent before any other operations are performed on
the map, including setting any other attributes of the map itself."

 -- Larry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to