i0b / map_layers

OpenLayers wrapper for rails

Home Page:https://github.com/pka/map_layers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

map_layers example project

For the original plugin visit github.com/pka/map_layers.

MapLayers makes it easy to integrate a dynamic map in a Rails application. It can display map tiles and markers loaded from many different data sources.

Some things you have to take care of in Rails 3:

  • Make the plugin values unescaped by adding “raw”

<%= raw(map_layers_includes :yahoo => “euzuro-openlayers”) %> <%= raw(@map.to_html) %>

  • JsExpr needs a function “to_str”

def to_str

@variable

end

  • Some APIs don’t work any more i.e. Google’s.

OpenLayers framework has been updated.

License

The MapLayers plugin for Rails is released under the MIT license.

About

OpenLayers wrapper for rails

https://github.com/pka/map_layers


Languages

Language:JavaScript 98.7%Language:Ruby 1.3%