apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.27k stars 382 forks source link

embedding map editing functionality #421

Closed tansaku closed 10 years ago

tansaku commented 10 years ago

I was wondering if there is a simple way to embed map editing functionality into a rails app through this gem?

apneadiving commented 10 years ago

not particularly.

Put since you have access to all google objects, it doesnt prevent you from doing it either.

tansaku commented 10 years ago

the particular thing we were looking for is to allow the user to drag and drop a marker (updating lat and long) to indicate when the google lat and long aren't matching their address. I think http://www.google.co.uk/mapmaker has this functionality ...

apneadiving commented 10 years ago

I see.

Since gmaps4rails wraps all google objects in models, you can use it to have an OO oriented code.

Just inject your own classes

tansaku commented 10 years ago

thanks for the quick response - so sounds like I could write an editor in ruby then? or it would need to be javascript?

apneadiving commented 10 years ago

javascript is mandatory, I was talking about js models, sorry for confusion

tansaku commented 10 years ago

no worries - thanks again for your help - if we make anything that works we'll contribute back