Rails, google maps for rails(gmaps4rails) - marker list?

It cannot be direct. You should: Create a mapping between your set of objects and a letter (one id => one letter) use this mapping to create the proper text in the list import a list of markers with letters and pick the right one according to your mapping Edit: In your model: attr_accessor :number def gmaps4rails_sidebar "#{number}: whatever text you need" end def gmaps4rails_marker_picture # set picture depending on number end In your controller: users = User. All @users.

Each_with_index do |user,index| user. Number = index end @json = @users. To_gmaps4rails.

It cannot be direct. You should: Create a mapping between your set of objects and a letter (one id => one letter). Use this mapping to create the proper text in the list import a list of markers with letters and pick the right one according to your mapping Edit: In your model: attr_accessor :number def gmaps4rails_sidebar "#{number}: whatever text you need" end def gmaps4rails_marker_picture # set picture depending on number end In your controller: @users = User.

All @users. Each_with_index do |user,index| user. Number = index end @json = @users.

To_gmaps4rails.

I don't know how to do that. – there-is-no-spoon Oct 5 at 14:24 How to add letter to marker? There is some info in FAQ?

I didn't notice that. – there-is-no-spoon Oct 5 at 14:30 You have to import custom markers and copy the pics in your public directory. I don't provide this – apneadiving Oct 5 at 14:37 I gave an example with number, it's quicker.

The shift to letters is only more lines of code. You have all the logic here. – apneadiving Oct 5 at 14:38.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions