Slightly incorrect constructor call?

Mar 30, 2008 at 5:01 PM
I'm not that familiar with JavaScript, but using the GoogleMapControl with two event handlers doesn't work in my scenario. I get an error saying "]" expected, and it seems to be in the part with the GoogleEvents where there really is a comma missing, I'd say.
This is the generated JavaScript at the bottom of my page:

var ctl00_ContentPlaceHolder1_artemGoogleMap_Map = new Artem.Web.GoogleMap({
    "Address":"DE", "BaseCountryCode":null, "ClientID":"ctl00_ContentPlaceHolder1_artemGoogleMap", "DefaultMapView":0, 
    "Directions":[], "EnableContinuousZoom":false, "EnableDoubleClickZoom":false, "EnableDragging":true, "EnableGoogleBar":false, 
    "EnableInfoWindow":true, "EnableMarkerManager":false, "EnableScrollWheelZoom":false, 
    "GoogleEvents":{"ClientEvents":[{"Key":"click","Handler":"clientShowPosition(overlay, point)"}{"Key":"zoomend","Handler":"clientZoomChanged(oldLevel, newLevel)"}]},
    "Height":"351px", "IsStatic":false, "Key":"...", "Latitude":0, "Longitude":0, "ShowMapTypeControl":true, 
    "ShowTraffic":false, "Width":"351px", "Zoom":5, "ZoomPanType":0});

Looks like a small bug when filling the event list, that commas are missing between the elements. What do you think?

Cheers, Oliver
Mar 31, 2008 at 5:56 AM
Hi Oliver,

It is a bug, no doubt about.
I'm going to fix it tonight and update the release.

Mar 31, 2008 at 9:03 PM
This was fixed.
Check out the new release 3.2