Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Drupal module, make, features, etc for a Drupal OpenLayers demo site.
PHP JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
features/ol_dccph2010_demo_feature
feeds
images
includes
other
styles
README.txt
ol_dccph2010_demo.drush
ol_dccph2010_demo.info
ol_dccph2010_demo.install
ol_dccph2010_demo.make
ol_dccph2010_demo.module

README.txt

This is a Drupal module, make file, install script, and set of features
to create a demo site for the Drupal OpenLayers module.  Specifically
used for a presentation at DrupalCon Copenhagen 2010:

http://cph2010.drupal.org/sessions/mapping-drupal-openlayers

Once running, this is a good example of this module, but it is built on
a number of Drupal related technologies that require a higher
level of knowledge, so this may not be the best way to learn about
this module.


Install
-----------------------------
(in theory)

0) (Optional) Use the following script to download OSM
   tiles locally (helpful for a presentation).  You'll have
   to change values manually.
   
   php other/get_osm_tiles.php  

1) Make build with drush:

   drush make ol_dccph2010_demo.make <your_directory>
   
   The make file should not be in the module directory, as 
   drush_make is smart and reads any included make files.
   This means that you will have to ... (not sure best solution).

2) Run through Drupal install

3) Enable modules, features, and other things with drush script:

   bash ol_dccph2010_demo.drush '<optional_url_for_local_tiles>'
   
   The above script is very basic and depending on how you have
   drush set up, you may want to point the $DRUSH variable to another
   path.
   
   You can also put in an optional OSM template URL for the layer
   that is used by default.  This is helpful if you want a
   completely local demo.  Make sure to use single quotes for it:
   bash ol_dccph2010_demo.drush 'http://localhost/osm/${z}/${x}/${y}.png'



Notes
-----------------------------
* In an ideal world, this would be a make file and install profile.
* Features have been altered so that they support dynamic paths better.



Credits
-----------------------------
* OpenLayers images and styles taken from Managing News (by Development Seed)
* Some icons used from http://code.google.com/p/google-maps-icons/
Something went wrong with that request. Please try again.