Fork me on GitHub
#reagent
<
2015-12-08
>
justin80803:12:25

The ShakaCode Team (http://www.shakacode.com) is looking to support ClojureScript. We have an upcoming client project slated for om-next, but given that it’s not ready, we’d like to compare it to reagent. I setup a repo to do a simple “hello world with async DB persistence“ example repo: https://github.com/shakacode/reactrails-in-reagent. The idea is to create a good example that matches up with our popular http://www.reactrails.com one. If anybody is interested in joining exploring opportunities with ShakaCode, please get in touch, and one of the best ways to get to know us is to help create this simple example. We love open source, blogs, etc., as we’re 100% remote.

gadfly36105:12:27

@pepe: this externs file worked for me when using @mikethompson 's google maps example with advanced compilation: --- google.maps = {}; google.maps.Map = function(){}; google.maps.LatLng = function() {}; google.maps.Marker.prototype.setPosition = function(latlng) {}; google.maps.Map.prototype.panTo = function(latLng) {};

pepe07:12:19

@gadfly361: aha, even the functions, must be there. Thing is, that I am also, using MapStyles and StreetView, but still great tip. Thank you very much, I will look in it and report back again.

gadfly36107:12:15

Np, and sounds good

mikethompson09:12:42

[cljsjs/google-maps "3.18-1"]

pepe09:12:26

@mikethompson: great find! Thank you very much, I will try it as soon, as I’ll go through my morning agenda.

pepe09:12:37

I did as described here https://github.com/cljsjs/packages/wiki/Using-Packages and now I am getting No such namespace: cljsjs.google-maps compilation error

pepe10:12:24

@mikethompson: I found the problem, I was using setLabel method on Marker instance, which is not part of the externs file in the google-maps cljsjs package. Maybe I could PR the creator about it. Still thank you very much for all the help. Map is mapping

mikethompson10:12:56

So no changes I should make to that Wiki page?

mikethompson10:12:29

Remember, it was previously untested

pepe10:12:11

I don’t think so. It works like advertised and all my externs brouhaha is not connected to the problem you are helping with

pepe10:12:59

but maybe the reagent cookbook could mention it?