Closed DevanB closed 9 years ago
Hey place the library in your public directory.
Doing that yields a new error:
Uncaught ReferenceError: GeolocationMarker is not defined
Here is a gist of my map.js
: https://gist.github.com/DevanB/1b2f0437c9040b7a3a9a
I have also tried it with the GoogleMaps.loadUtilityLibrary('/public/geolocationmarker-compiled.js');
just above the GoogleMaps.ready()
function and it yields the same error and another:
Uncaught SyntaxError: Unexpected token < in geolocationmarker-compiled.js
@DevanB make sure that geolocationmarker-compiled.js
only lives in the public
directory and not elsewhere within your Meteor application. Assuming it's at the root of the public directory (public/geolocationmarker-compiled.js
). Load it like so: GoogleMaps.loadUtilityLibrary('geolocationmarker-compiled.js');
.
Also place the loadUtilityLibrary
method alongside the load
method, rather than inside the ready callback.
I'm having issues getting geolocation-marker utility working. I've put the file in
client/lib
. After then addGoogleMaps.loadUtilityLibrary('client/lib/geolocationmarker-compiled.js');
toTemplate.map.onCreated
just beforeGoogleMaps.ready
function and I see an error in the console:Uncaught ReferenceError: google is not defined
I'm new to Meteor, so struggling through getting the geolocation-marker utility working. Thanks for any help!