I have found that following js scripts are not included in the module whilst they are called from the code.

'gmap_overlay_edit' => array(
'#input' => TRUE,
'#process' => array('process_gmap_overlay_edit'),
'#attached' => array(
'js' => array(
"$path/js/gmap_shapes.js" => array('weight' => 2),
"$path/js/overlay_edit.js" => array('weight' => 2),
"$path/js/polylineEdit/src/polylineEdit_packed.js" => array('weight' => 3),
"$path/js/polygonEdit/src/polygonEdit_packed.js" => array('weight' => 3),

Following are missing

/sites/all/modules/gmap/js/polylineEdit/src/polygonEdit_packed.js
/sites/all/modules/gmap/js/polylineEdit/src/polylineEdit_packed.js

Comments

dimitrov.adrian’s picture

Priority: Critical » Major

Actually these javascripts are for V2 API of google maps, so they not need anymore. Port for V3 of polyline edit is available at https://github.com/ubilabs/google.maps.polyline.edit and may be have to be adapted.
Currently I am working to get them worked for gmap, for one project, but if someone else had progress, I'll be happy to share the effort.

podarok’s picture

Thanks for working on this
Looks good here patch against latest dev is any progress done

dorkau’s picture

Hi,
I have the same problem - can not add any poligon through gmap macro builder:

Warning: file_get_contents(sites/all/modules/gmap/js/polylineEdit/src/polylineEdit_packed.js): failed to open stream: No such file or directory in _locale_parse_js_file()

Thanks for working on it and looking forward for a patch/solution for this issue.

garbo’s picture

Issue summary: View changes

Is there any progress on this? I still get the error message in the 7.2.9 version of the gmap-module and cannot create macro's with polygons.

Cheers,
Bram.

Summit’s picture

Hi,
With latest Gmap .dev, this missing polygonEdit_packed.js is still an issue?
Any one solved this please?

Is this module still maintained?
greetings, Martijn

jboeger’s picture

I'm having the same problem. New site, newest versions of everything.

memcinto’s picture

Same problem, GMap 7.x-2.11.

Warning: file_get_contents(sites/all/modules/gmap/js/polylineEdit/src/polylineEdit_packed.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1527 of /var/www/xxxxx/includes/locale.inc).
Warning: file_get_contents(sites/all/modules/gmap/js/polygonEdit/src/polygonEdit_packed.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1527 of /var/www/xxxxx/includes/locale.inc).

I commented out these two lines in gmap.module around line 575

// "$path/js/polylineEdit/src/polylineEdit_packed.js" => array('weight' => 3),
// "$path/js/polygonEdit/src/polygonEdit_packed.js" => array('weight' => 3),