Active
Project:
GMap Module
Version:
7.x-2.6
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2013 at 09:25 UTC
Updated:
17 Apr 2013 at 10:34 UTC
after upgrading from 7.x-1.1-beta2 to 7.x-2.6 the lines are not displyed anymore in the map.
I add them in this way:
if ($this->dataarray[$i][0] == "trace") {
$shapenum = count($this->map['shapes']);
$this->map['shapes'][] = array (
'type' => "line",
'style' => array("0000ff", 3, 45),
'points' => array(),
);
for ($j = 0; $j < count($this->dataarray[$i][1]); $j ++) {
$this->map['shapes'][$shapenum]['points'][]=array($this->dataarray[$i][1][$j][1],$this->dataarray[$i][1][$j][0]);
}
}//trace| Comment | File | Size | Author |
|---|---|---|---|
| map7.x.2.6.png | 644.24 KB | maddes_v | |
| map7.x.1.1.png | 645.49 KB | maddes_v |
Comments
Comment #1
johnvYou're suffering from the upgrade from APIv2 to API v3. It helps if you can report js-errors.
expamle with google: use Extra | Developer tools | Developer tools or js-console.
Be sure to not aggregate the js-files.
Comment #2
maddes_v commentedJS-Console says:
ReferenceError: GPolygon is not defined @ http://localhost/test/sites/all/modules/gmap/js/gmap_shapes.js?gmap_shapes.js:98gmap_shapes.js:98
Pg.prototype = new GPolygon();I've found this regarding GPolygon in APIv3:
http://stackoverflow.com/questions/3268099/what-is-openinfowindowhtml-an...