How do I add a marker to a google map?

My Code (a javascript in the success event of a geolocation service component):
var map = new google.maps.Map(Tiggr('mapa'));

var location = new google.maps.LatLng(8.0000,34.0000);

var marker = new google.maps.Marker({
position: location,
map: map,
title:"Hello World!"
});

Error:
Uncaught TypeError: Cannot set property 'position' of undefined
Ci
On
J.Vh
Jmain.js:36
df.(anonymous function).mc.cmain.js:25
Nmain.js:10
ffmain.js:25
kfmain.js:25
(anonymous function)
gf.(anonymous function)
(anonymous function)main.js:25
bmain.js:11
df.(anonymous function).mcmain.js:25
Nmain.js:10
df.(anonymous function).mcmain.js:25
cf.(anonymous function).Idmain.js:24
df.(anonymous function).mcmain.js:25
hfmain.js:25
(anonymous function)
1 person has
this question
+1
This topic is no longer open for comments or replies.