Closed (duplicate)
Project:
GMap Module
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2007 at 16:22 UTC
Updated:
18 Sep 2007 at 23:41 UTC
I noticed when using Jef Poskanzer's clusterer that clicking on a cluster of markers opened up a box filled with a list of 'undefined' markers. I traced this back, and found the gmap.module wasn't providing titles: In the array added to the page, the 'markername' field is empty:
<script type="text/javascript">Drupal.extend({ settings: { "gmap": { "view_gmap": { "width": "500px", "height": "300px", "zoom": 0, "controltype": "Small", "align": "None", "maptype": "Map", "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": { "locpick": 0, "nodrag": 0, "nokeyboard": 1, "nomousezoom": 0, "autozoom": 1, "dynmarkers": 0, "overview": 0, "notype": 0, "fatmarkers": 0 }, "markermode": "0", "markers": [
...snip...
{ "markername": "", "text": "\x3cdiv class=\"field_longitude_value\"\x3e-80.9786\x3c/div\x3e\x3cdiv class=\"field_latitude_value\"\x3e29.17\x3c/div\x3e\x3cdiv class=\"title\"\x3eNodeTitle\x3c/div\x3e", "latitude": "29.17", "longitude": "-80.9786" },
...snip...
{ "markername": "", "text": "\x3cdiv class=\"field_longitude_value\"\x3e100.249\x3c/div\x3e\x3cdiv class=\"field_latitude_value\"\x3e5.47571\x3c/div\x3e\x3cdiv class=\"title\"\x3eAnotherNode\x3c/div\x3e", "latitude": "5.47571", "longitude": "100.249" } ], "querypath": "http://www.worldbeachmap.com/new/map/query", "longitude": "30", "latitude": "0" }
} } });</script>
I'm not sure why it's empty, I've had a look through the gmap.module, but I'm not sure if this is a bug or if it's me doing something wrong... The gmap_theme function is already missing the titles by the time the data gets that far, but I don't understand the module well enough to understand the flow.
Please switch this to the 'bug category' if it is a bug.
Comments
Comment #1
bdragon commentedI got Clusterer and GMarkerManager up to date again. Please see http://drupal.org/node/176765.