OpenLayers
OpenLayers: Free Maps for the Web
This package pulls OpenLayers with code, CSS, and images.
Installation and Usage
Install with Meteor 0.9 or later:
$ meteor add mizzao:openlayers
Check out the docs at http://openlayers.org/.
Tips and Tricks
- This package automatically loads the OpenLayers CSS. Thus, when creating an
OpenLayers.Map
or any of its derivatives (likeOverviewMap
), make sure to set thetheme
field tonull
so that OpenLayers doesn't try to load CSS from its default path. For more information, see Deploying OpenLayers and https://github.com/openlayers/openlayers/issues/1067. - For an example of integration with a Meteor app, see https://github.com/mizzao/CrowdMapper/blob/master/client/views/map.coffee.