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
CommentFileSizeAuthor
map7.x.2.6.png644.24 KBmaddes_v
map7.x.1.1.png645.49 KBmaddes_v

Comments

johnv’s picture

You'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.

maddes_v’s picture

JS-Console says:
ReferenceError: GPolygon is not defined @ http://localhost/test/sites/all/modules/gmap/js/gmap_shapes.js?gmap_shapes.js:98

gmap_shapes.js:98
Pg.prototype = new GPolygon();

I've found this regarding GPolygon in APIv3:
http://stackoverflow.com/questions/3268099/what-is-openinfowindowhtml-an...