Moolayers 0.1

Creates OpenLayers maps.

Demo at: http://jean-philippe.github.com/moolayers



Details

Author
Jean-philippe Serafin
Current version
0.1
GitHub
jean-philippe/moolayers
Downloads
946
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • core/1.4.1: *

How to use

Simple map:

<div id="map" data-zoom="1.5">
    <nav>
        <ul>
            <li>
                <a href="#" title="Zoom in" data-action="zoomIn" accesskey="i">+</a>
            </li>
            <li>
                <a href="#" title="Zoom out" data-action="zoomOut" accesskey="o">-</a>
            </li>
        </ul>
    </nav>
</div>
<script src="http://www.openlayers.org/api/OpenLayers.js" type="text/javascript"></script>
<script type="text/javascript">
    var map = new MooLayers.Map('map');
</script>

Marker service

<div id="map" data-zoom="1.5" data-markers-service="markers.json" />

expected json format:

{"markers" : [{
        "content": "somewhere...",
        "latitude": 0,
        "longitude": 9.4
    }, {
        "content": "somewhere else...",
        "latitude": 40,
        "longitude": 0
    }]
}

Runing Tests

requirements: PhantomJS

git submodule init && git submodule update  # Checks out CasperJS
phantomjs test.js

Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus