This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bounds = new google.maps.LatLngBounds() | |
for marker in @markers | |
bounds.extend(marker.getPosition()) | |
@map.fitBounds(bounds) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing librets in Ubuntu 14.04 can actually be fairly painless. Took me half an hour. | |
# I followed the instructions found at https://gist.github.com/sarkis/4472012 and made some modifications to keep it current. | |
cd ~/; mkdir src; cd src # or go to whatever folder you want to build source from | |
sudo apt-get update && sudo apt-get install build-essential | |
sudo apt-get install libexpat1-dev libcurl3-dev libboost-dev libboost-filesystem-dev antlr antlr3 libantlr-dev swig libboost-program-options-dev python-dev | |
git clone https://github.com/NationalAssociationOfRealtors/libRETS | |
cd libRETS | |
rbenv local 1.8.7-p371 # or whatever version you want to use | |
./autogen |