Closed Drachenfels closed 7 years ago
Yet another bug (probably source is the same):
var map = $('.map')
.gmap3({
center: {lat: 50, lng: 0},
zoom: 13,
mapTypeId : google.maps.MapTypeId.ROADMAP
})
map.on('tilesloaded', function(obj) {
console.log('aaa')
})
map.marker({
position: {lat: 51, lng: 0},
icon: 'http://maps.google.com/mapfiles/marker_green.png'
})
map.on('tilesloaded', function(obj) {
console.log('bbb')
})
Expected output:
> aaa
> bbb
Actual output:
> aaa
The "then" function after the marker get a marker in parameter
Have a look on http://gmap3.net/api-chaining.html
Expected outcome is:
Actally what we got is:
Working example on this page:
https://drachenfels.github.io/gmap3-issue/
Open console to see error.