Marker description overwritten by marker title when editing field

pbarnett - May 19, 2008 - 02:27
Project:cck_map
Version:5.x-3.3
Component:Code
Category:bug report
Priority:critical
Assigned:pbarnett
Status:active
Description

Marker description is overwritten by the marker title in node edit mode.

This is because line 403, in function gmapAdminController.prototype.initializePoints reads

400        marker = new GMarker(new GLatLng(lat, lon), markerOptions);
401        marker.image = image;
402        marker.title = title;
403        marker.description = title;
404        this.attachMarkerListeners(marker);
405        this.map.addOverlay(marker);

rather than
403        marker.description = description;

Not really worth rolling a patch for; just thought I'd point it out.

Excellent module, BTW; I've learned a lot from studying it and reading the Google maps API... thanks!

Pete.

 
 

Drupal is a registered trademark of Dries Buytaert.