The examples in the readme are too brief and also do not work.
1) No mention of the use of cartographer-config.yml to be placed in the config directory
2) No examples setting the centre of the map explicitly, which to me is a basic first example
3) The example with markers fails, because the default icon is not an icon object, but the symbol :normal. When the name instance variable is evaluated when creating the javascript for the marker, failure occurs. Fix to README:
The examples in the readme are too brief and also do not work.
1) No mention of the use of cartographer-config.yml to be placed in the config directory 2) No examples setting the centre of the map explicitly, which to me is a basic first example
e.g. @map = Cartographer::Gmap.new( 'map' ) @map.zoom = 4 @map.center = [-40,174] @map.debug = true
3) The example with markers fails, because the default icon is not an icon object, but the symbol :normal. When the name instance variable is evaluated when creating the javascript for the marker, failure occurs. Fix to README: