To make the changes I'd proposed, edit product-vbgooglemapme.xml and make these changes.
To make mousing over only show the username, change:
Line 550:
var marker = new GMarker(point, icon);
to
var marker = new GMarker(point, {icon:icon, title:username});
BTW, the former syntax for the GMarker constructor is now deprecated. What I substituted for "icon" is a GMarkerOptions object, which is a JavaScript property list.
To enable mousewheel zooming and terrain display, add these lines:
map.enableScrollWheelZoom();
map.addMapType(G_PHYSICAL_MAP);
after the following lines:
Line 598:
map = new GMap2(document.getElementById("memap"),$map_type);
Line 855:
map = new GMap2(document.getElementById("mapme"),$map_type);
Line 1129:
map = new GMap2(document.getElementById("mapme"),$map_type);
Be sure to reinstall it after you are done editing it.
I didn't try to add a "terrain" option to the possible default views, because it would take some coding in several places in the plugin, and I didn't try to add draggability to the marker placer, even though it only requires editing the product file.
To do the latter, you set draggable:true in the marker's options, then set up a GEvent listener that gets the "moveend" event and updates the displayed position accordingly.
And is the recentering after moving worth keeping?
ETA: when making mousing over only show the username, be sure to go to
Admin CP > Vbgooglemap ME > ME Settings > Enable the mouseover support on the markers?
and make it "No". That way, you will only get a marker's info bubble when you click on it.
|