gmaps4railsを実装中に2つのエラーが発生しました。
分かる方がいれば解決方法を教えてください。
一つ目
google chrome console error
Uncaught ReferenceError: google is not defined(…)
(function() { this.Gmaps.Google.Primitives = function() { var factory; factory = { point: google.maps.Point, ← この列でエラーが出ています。 size: google.maps.Size, circle: google.maps.Circle, latLng: google.maps.LatLng, latLngBounds: google.maps.LatLngBounds, map: google.maps.Map, mapTypez: google.maps.MapTypeId, markerImage: google.maps.MarkerImage, marker: google.maps.Marker, infowindow: google.maps.InfoWindow, listener: google.maps.event.addListener, clusterer: MarkerClusterer, listenerOnce: google.maps.event.addListenerOnce, polyline: google.maps.Polyline, polygon: google.maps.Polygon, kml: google.maps.KmlLayer, addListener: function(object, event_name, fn) { return factory.listener(object, event_name, fn); }, addListenerOnce: function(object, event_name, fn) { return factory.listenerOnce(object, event_name, fn); }, mapTypes: function(type) { return factory.mapTypez[type]; }, latLngFromPosition: function(position) { if (_.isArray(position)) { return new factory.latLng(position[0], position[1]); } else { if (_.isNumber(position.lat) && _.isNumber(position.lng)) { return new factory.latLng(position.lat, position.lng); } else { if (_.isFunction(position.getServiceObject)) { return position.getServiceObject().getPosition(); } else { return position; } } } } }; return factory; }; }).call(this);
二つ目
GET http://localhost:3000/buildings/1/%E2%80%9Dhttps://maps.googleapis.com/maps/api/js?sensor=true&key=APIkey%E2%80%9C 404 (Not Found)
Failed to load resource: the server responded with a status of 404 (Not Found)
よろしくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。