![]() |
Thank you just installed Great pluging cheers.
i have few problems. i feed very had to go each post in this thread and find my question has been answered or not. My qestion is : 1. I want the White Tool Tip like stuff that contain the user location information auto appear insted of on clicd on the marker. coz it confuses. 2. is there a way to limit the size of the picture allowed? Marked as install and nominated :thumb: |
To make the info bubbles only appear when clicking on a marker, go to
Admin CP > Vbgooglemap ME > ME Settings > Enable the mouseover support on the markers? For setting the maximum size of an image, one would have to edit product-vbgooglemapme.xml Line 550: var content2 = "<img width=\"$gmimagemax\" border=\"0\" src=\""+pimage+"\"></a>"; I'm thinking of something like var content2 = "<img style=\"max-width: $gmimagemax; max-height: $gmimagemax\" border=\"0\" src=\""+pimage+"\"></a>"; The picture will get displayed, but would get shrunken in both dimensions to fit a maximum-dimension square. That dimension is set in ME Settings as Default width for the balloon on marker And after editing product-vbgooglemapme.xml be sure to reinstall it. For some additional fixes, do some more editing of product-vbgooglemapme.xml: 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); Fix of marker appearance in edit mode: Line 863: map.addOverlay(new GMarker(point, icon)); to map.addOverlay(new GMarker(point, {icon:icon})); Line 877: map.addOverlay(new GMarker(point)); to map.addOverlay(new GMarker(point, {icon:icon})); Fix of marker position on map: Change all occurrences of icon.iconAnchor = new GLatLng(...); icon.infoWindowAnchor = new GLatLng(...); to icon.iconAnchor = new GPoint(6, 20); icon.infoWindowAnchor = new GPoint(8, 1); Coordinates are left-to-right, top-to-bottom. There are several improvements that I didn't bother to try to make:
To add draggability 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. The reason that it was not originally present was because vbGoogleMap had originally been coded for an older version of the Google Map API that had lacked this and several other convenient features. |
I've gone ahead and implemented this fix:
Centers an image in the info balloon's "Image" tab. If the image is larger than the maximum allowed size in either direction, then it will be rescaled to fit. In product-vbgooglemapme.xml Line 550: var content2 = "<img width=\"$gmimagemax\" border=\"0\" src=\""+pimage+"\"></a>"; to var content2 = "<img style=\"max-width: {$gmimagemax}px; max-height: {$gmimagemax}px; display: block; text-align: center; margin: auto; vertical-align:middle\" src=\""+pimage+"\">"; - I've also tracked down the code for selecting the default map type; I will be posting it when I implement it. |
Fix: added the ability to choose "Terrain" as a default map type:
In vbgooglemapme_admin.php After line 39: '3' => 'Satellite', add '4' => 'Terrain', In vbgooglemapme.php After line 73, change if ($maptype == 1) { $map_type = "{mapTypes:[G_NORMAL_MAP,G_SATELLITE_MAP,G_HYBRID_MAP]}"; } ... } to switch ($maptype) { case 1: $map_type = "G_NORMAL_MAP"; break; case 2: $map_type = "G_HYBRID_MAP"; break; case 3: $map_type = "G_SATELLITE_MAP"; break; case 4: $map_type = "G_PHYSICAL_MAP"; break; } In product-vbgooglemapme.xml change map = new GMap2(document.getElementById("mapme"),$map_type); to map = new GMap2(document.getElementById("mapme")); and likewise for "memap" instead of "mapme". After map.addMapType(G_PHYSICAL_MAP); add map.setMapType($map_type); I'd earlier described my terrain fix, which involves adding the line map.addMapType(G_PHYSICAL_MAP); after each instance of map = new GMap2(...); |
Quote:
i can now see this are in the vbgooglemap.php file Code:
if ($mouseoversupport == 0) |
Quote:
That is, without needing to mouse over or click on their markers. The AdminCP option I'd referred to earlier was for setting mouseover vs. clicking. As far as can tell from the Google Maps API reference and elsewhere on "info windows", there is only one info-bubble object per map, but one that vbGoogleMap revises each time one mouses over or clicks on a marker. So it does not seem possible to display several info bubbles at once. |
yes yes, always be visible :D
When load, the bubble also should appear. then the viewer can close it if he want. |
http://img444.imageshack.us/img444/7640/pscxg9.jpg
when you click show on map, that users bubble should appear on load. but what i see is it shows all the users marks and hard to find the one that relevant to the user in that raw. |
pls help !
http://img300.imageshack.us/img300/8794/pscim6.jpg i want to add in the "Map" word that link to each users map location now we have in table. how can i do that? Edited : I added a link to the Post Bit and try to use the url. but the cordinates are not retrived for earch user. the post is empty :( Code:
<a href="$bburl/vbgooglemapme.php?lat=$getinfo_me_list[lat_map]&lng=$getinfo_me_list[lng_map]&zoom=$linkzoomlevel" target="_self">$vbphrase[vbgooglemapme_map_link]</a> |
I would like to use this so that my members can upload photos and chart them on the map - and then other users can see the photos and where they were taken - is it possible with this MOD?
|
All times are GMT. The time now is 06:32 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|