ruby on rails - gmaps4rails_infowindow loads all data when page loading -


i using gmaps4rails gem.it works charm.i have many records in database 15000 when using gmaps4rails_infowindow method @ time of loading map loads data database.it becomes overhead.

the method def gmaps4rails_infowindow "

#{self.id}


#{self.name}
#{self.church}
#{self.course_denomination}
#{self.course_type}
#{self.address}
#{self.taluk}
#{self.district}
#{self.state}
#{self.pin}
#{self.email}
#{self.phone}
#{self.latitude}
#{self.longitude}"

end 

so want load each individual data when click on marker possible can call infowindow method clicking on marker.please me.

thanks


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -