Code: Select all
jquery-3.3.1.js:3827 Uncaught TypeError: obj.cggm2 is not a function
Thanks,
Pete.
Code: Select all
jquery-3.3.1.js:3827 Uncaught TypeError: obj.cggm2 is not a function
Code: Select all
$(document).ready(function() {
var obj = $('#cggm_map_1');
obj.cggm2({
"name": "Wakefield Location",
"description": "<p>Blah blah blah</p>",
"default_icon": "dd-start",
"type": "roadmap",
"zoom": 7,
"nav_controls": 1,
"infowindow": 1,
"scale_controls": 0,
"sv_controls": 0,
"type_controls": 1,
"tooltip": 1,
"sv_radius": 100,
"type_control_option": "DEFAULT",
"infowindow_trigger": "click",
"directions": 1,
"directions_dest": "WINDOW",
"directions_units": "IMPERIAL",
"directions_draw": 1,
"sensor": 1,
"sensor_center": 1,
"sensor_marker": 0,
"sensor_icon": "dd-end-small",
"combine_points": 0,
"combined_icon": "airport",
"markers": [],
"youareherestr": "You are here",
"mapinstance": 1,
"center": ["0.000000", "0.000000"],
"icons": {
"dd-end-small": {
"name": "dd-end-small",
"url": "modules\/CGGoogleMaps2\/icons\/dd-end-small.png",
"anchor_x": "5",
"anchor_y": "8"
},
"dd-start": {
"name": "dd-start",
"url": "modules\/CGGoogleMaps2\/icons\/dd-start.png",
"anchor_x": "10",
"anchor_y": "17"
},
"dd-end": {
"name": "dd-end",
"url": "modules\/CGGoogleMaps2\/icons\/dd-end.png",
"anchor_x": "10",
"anchor_y": "17"
},
"airport": {
"name": "airport",
"url": "modules\/CGGoogleMaps2\/icons\/airport.png",
"anchor_x": "11",
"anchor_y": "16"
}
}
});
});