javascript - gmap3: Uncaught TypeError: undefined is not a function -
i developing wordpress website, , need display google map in contact page. error uncaught typeerror: undefined not function
in javascript console. here code, can tell mere whats wrong?
$(window).load(function(){ $(".google-maps").gmap3({ marker:{ address:"511, amaliesgade, københavn",options:{icon: "img/marker.png"} }, map:{ options:{ zoom: 14, scrollwheel: false, maptypecontrol: false, streetviewcontrol: false, scalcontrol: false, draggable: false, disabledefaultui: true} } }); });
thanks time, , in advance
troels
in wordpress jquery run in no-conflict-mode, can't access jquery straight via $
.
try this:
jquery(window).load(function($){ $(".google-maps").gmap3({ marker:{ address:"511, amaliesgade, københavn",options:{icon: "img/marker.png"} }, map:{ options:{ zoom: 14, scrollwheel: false, maptypecontrol: false, streetviewcontrol: false, scalcontrol: false, draggable: false, disabledefaultui: true} } }); });
javascript jquery wordpress google-maps
No comments:
Post a Comment