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
Comment #1
dimitrov.adrian CreditAttribution: dimitrov.adrian commentedActually 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.
Comment #2
podarokThanks for working on this
Looks good here patch against latest dev is any progress done
Comment #3
dorkau CreditAttribution: dorkau commentedHi,
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.
Comment #4
garbo CreditAttribution: garbo commentedIs 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.
Comment #5
Summit CreditAttribution: Summit commentedHi,
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
Comment #6
jboeger CreditAttribution: jboeger commentedI'm having the same problem. New site, newest versions of everything.
Comment #7
memcinto CreditAttribution: memcinto as a volunteer commentedSame 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),