libreoffice-online/loleaflet
Mihai Varga ff700ae813 Added Leaflet.Draw-0.2.4
Draw is a plugin that adds support for drawing and editing vectors and
markers on Leaflet maps. This will be used to create selections on the
document.
Source code: https://github.com/Leaflet/Leaflet.draw
Licence: MIT
2015-04-06 12:23:19 +03:00
..
build Set LF line terminator 2015-03-09 15:58:37 +02:00
debug This places the controls above the map (in another div) 2015-04-03 12:01:02 +03:00
dist Container's background color is the same as document's #F0F0F0 2015-04-06 10:09:16 +03:00
plugins/draw-0.2.4 Added Leaflet.Draw-0.2.4 2015-04-06 12:23:19 +03:00
spec Set LF line terminator 2015-03-09 15:58:37 +02:00
src Zooming is animated again 2015-04-06 09:55:12 +03:00
.eslintrc Unmodified Leaflet 2015-03-09 12:16:17 +02:00
.gitignore Unmodified Leaflet 2015-03-09 12:16:17 +02:00
.npmignore Unmodified Leaflet 2015-03-09 12:16:17 +02:00
.travis.yml Unmodified Leaflet 2015-03-09 12:16:17 +02:00
CHANGELOG.md Unmodified Leaflet 2015-03-09 12:16:17 +02:00
FAQ.md Unmodified Leaflet 2015-03-09 12:16:17 +02:00
Jakefile.js Unmodified Leaflet 2015-03-09 12:16:17 +02:00
LICENSE Set LF line terminator 2015-03-09 15:58:37 +02:00
package.json Unmodified Leaflet 2015-03-09 12:16:17 +02:00
PLUGIN-GUIDE.md Unmodified Leaflet 2015-03-09 12:16:17 +02:00
README Mention how to run npm without root 2015-03-24 13:15:43 +02:00

Leaflet paltform for LibreOffice On-Line 

Code convention
    * 'jake lint' should be run before commiting
    * files should have unix line terminators (LF)
    * tools to convert files: dos2unix or fromdos 

Building:
    npm install -g jake
    npm install
    jake build

If you want to avoid having to run the above as root, create a directory that
you own somehwere, for instance /opt/npm, and add a line to ~/.npmrc:
prefix=/opt/npm

Loading a document:
    The map should have the following options:
        - bounds = top left [0, 0] and something larger in the bottom right corner which
          will later be updated 
        - center at [0, 0] this will try to place the [0, 0] point in the middle of the
          map, but it will be moved in the top left corner when the maxBounds are set
        - zoom = defautl zoom value, zooming in and out will refer to this value
        - server address

    The layer (actual document) should have the following options:
        - doc = path to the document that will be loaded
        - useSocket = tells the map the tiles will be received from a websocket
          connection. If this parameter is false, an image will be loaded in each tile

To run an example, open debug/document/document_simple_example.html in the browser