Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undeclared vars when using hoplon google-maps as of hoplon 6 alpha 14 #2

Open
livtanong opened this issue Jun 18, 2016 · 6 comments
Open

Comments

@livtanong
Copy link
Member

WARNING: Use of undeclared Var hoplon.google.jsapi.maps/map__11171 at line 149 hoplon/google/jsapi/maps.cljs
WARNING: Use of undeclared Var hoplon.google.jsapi.maps/map__11171 at line 149 hoplon/google/jsapi/maps.cljs
WARNING: Use of undeclared Var hoplon.google.jsapi.maps/map__11182 at line 153 hoplon/google/jsapi/maps.cljs
WARNING: Use of undeclared Var hoplon.google.jsapi.maps/map__11182 at line 153 hoplon/google/jsapi/maps.cljs
WARNING: Use of undeclared Var hoplon.google.jsapi.maps/map__11184 at line 153 hoplon/google/jsapi/maps.cljs
WARNING: Use of undeclared Var hoplon.google.jsapi.maps/map__11184 at line 153 hoplon/google/jsapi/maps.cljs
@micha
Copy link

micha commented Jun 18, 2016

@levitanong those are just warnings, right? Still works okay?

@livtanong
Copy link
Member Author

At the moment, no. But I don't know yet if it's my fault. :P Haven't passed any arguments to the google-map element besides setting its height and width. I'm not certain how to specify an api key using this element.

I'm getting this error:

js?v=3&sensor=false&libraries=geometry&callback=google.loader.callbacks.maps:98 Uncaught RangeError: Maximum call stack size exceeded_.r.get @ js?v=3&sensor=false&libraries=geometry&callback=google.loader.callbacks.maps:98(anonymous function) @ js?v=3&sensor=false&libraries=geometry&callback=google.loader.callbacks.maps:51_.r.zoom_changed._.ex.zoomRange_changed @ common.js:264rb @ js?v=3&sensor=false&libraries=geometry&callback=google.loader.callbacks.maps:38_.r.set @ js?v=3&sensor=false&libraries=geometry&callback=google.loader.callbacks.maps:98(anonymous function) @ js?v=3&sensor=false&libraries=geometry&callback=google.loader.callbacks.maps:52_.r.zoom_changed._.ex.zoomRange_changed @ common.js:264rb @ js?v=3&sensor=false&libraries=geometry&callback=google.loader.callbacks.maps:38_.r.set @ js?v=3&sensor=false&libraries=geometry&callback=google.loader.callbacks.maps:98(anonymous function) @ js?v=3&sensor=false&libraries=geometry&callback=google.loader.callbacks.maps:52
util.js:222 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

@livtanong
Copy link
Member Author

I'm getting stack overflow errors whenever I try to zoom or pan (The map tiles don't load, by the way)

@onetom
Copy link
Member

onetom commented Jun 18, 2016

@levitanong: is your gmaps issue specific to alpha14?
have you isolated the problem yet?
can you reproduce it using the "canonical example" too?
https://hoplon.github.io/demos/google-maps/

@livtanong
Copy link
Member Author

Sorry, I haven't isolated the problem yet. I'm currently working on a deadline, so I opted to go the cljsjs route. I'll revisit this problem when my schedule frees up. :)

@livtanong
Copy link
Member Author

Interesting. The stack overflow happens on the cljsjs version when both center and zoom are missing. I'd try it on this but I can't for the life of me figure out how to set the zoom level. As far as I can tell, only center is supported here. Can anyone advise me on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants