RequireJS と Google マップを接続してみます。私はこのコードを持っています
require(['gmapapi'], function(google){
var map;
var mapOptions = {
zoom: 8,
center: new google.LatLng(-34.397, 150.644),
mapTypeId: google.MapTypeId.ROADMAP
};
map = new google.Map(document.getElementById('map'),
{});
});
必要な構成でgmapapi: '//maps.googleapis.com/maps/api/js?sensor=false',
しかし、エラーが表示されますCannot read property 'LatLng' of undefined
How can I access this object?