The code below is what I am trying to use in order to add markers to the maerkers var and then add an additional marker to the handler. The second handler.addMarker method just overwrites my first setting of the markers. How can I concatenate using the gmaps4rails gem?
markers = handler.addMarkers(<%=raw @hash.to_json %>);
markers = handler.addMarker({
lat: position.coords.latitude,
lng: position.coords.longitude
});
Using JavaScript you can add your multiple marker by creating new object for each one.