If it helps anyone, when using Exhibit 2.3 (Google Maps v3) and the
mapConstructor option, the basic statements need to be modified to
initiate the map.  For example,

...this worked for Exhibit 2.2 (GM v2)

function newMapConstructor(mapDiv){
  map = new GMap2(mapDiv);
  map.setCenter(new GLatLng(39.2,-75.4), 8);
  map.addControl(new GLargeMapControl3D());
  map.addControl(new GHierarchicalMapTypeControl());
  map.addControl(new GScaleControl());
  map.addMapType(G_PHYSICAL_MAP);
  map.setMapType(G_PHYSICAL_MAP);
  return map;
}


...in Exhibit 2.3 (GM v3), the same would be done with

function newMapConstructor(mapDiv){
        var myOptions = {
          center: new google.maps.LatLng(39.2,-75.4),
                  mapTypeControl: true,
          mapTypeControlOptions: {
               style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
          },
          zoom: 9,
                  scaleControl: true,
          mapTypeId: google.maps.MapTypeId.TERRAIN
        };
        map = new google.maps.Map(mapDiv, myOptions);

  return map;
}



The four standard map types in GM v3 are ROADMAP, SATELLITE, HYBRID,
TERRAIN.  Perhaps these should be the four options in the Map View
panel for types.


Also, I'm not sure if this is possible, but it would be great if there
was an option in the Map View to choose between GM v2 and GM v3.  I'm
sure there are people (like me) that have custom map functions written
for GM v2 but want to take advantage of the bug fixes and new features
since Exhibit 2.2 was released.  Or perhaps some of those fixes/
enhancements could be back ported to 2.2 and then 2.3 would move
forward with GM v3.   Just a thought.


- John

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to simile-widgets@googlegroups.com.
To unsubscribe from this group, send email to 
simile-widgets+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to