Permalink
Browse files

add pics in package

  • Loading branch information...
1 parent 4ff4cd3 commit 37ce61728f9b2d950253750d272c02fb4577e897 Bevan Hunt committed Oct 28, 2012
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
View
@@ -5,4 +5,9 @@ Package.describe({
Package.on_use(function (api, where) {
api.add_files('lib/leaflet/dist/leaflet-src.js', 'client');
api.add_files('styles/leaflet.css', 'client');
+ api.add_files('images/layers.png', 'client');
+ api.add_files('images/marker-icon.png', 'client');
+ api.add_files('images/marker-shadow.png', 'client');
+ api.add_files('images/zoom-in.png', 'client');
+ api.add_files('images/zoom-out.png', 'client');
});
View
@@ -4,29 +4,20 @@
## How to install
1. npm install meteorite (if not already installed)
-2. git clone https://github.com/bevanhunt/meteor-leaflet.git
-3. cd meteor-leaflet
-4. cp -r leaflet your_meteor_project/public
-5. cd your_meteor_project
-6. mrt add leaflet
-7. write the map code in Template.myTemplate.rendered
-8. set in your client code the default image path
-9. enclose the map div in your template with the constant tag
+2. mrt add leaflet
+3. write the map code in Template.myTemplate.rendered
+4. set in your client code the default image path
+5. enclose the map div in your template with the constant tag
-step 9
+step 4
```javascript
L.Icon.Default.imagePath = '../../leaflet'
```
-step 10
+step 5
```html
{{#constant}}<div id="map">{{/constant}}
```
## Demo
-http://leaflet.meteor.com
-
-## Notes:
-1. Step 9 - the file setting the path is relative to the leaflet [image] folder - public doesn't count as a folder in the path
-2. The Leaflet CSS and JS are in this package
-3. A better demo with source is coming soon
+http://leaflet.meteor.com
View
@@ -3,6 +3,6 @@
"description": "Leaflet.js, a Javascript library for mobile-friendly interactive maps, packaged for Meteor. See http://leafletjs.com.",
"homepage": "https://github.com/bevanhunt/meteor-leaflet",
"author": "Bevan Hunt <me@bevanhunt.com> (http://www.bevanhunt.com)",
- "version": "0.0.6",
+ "version": "0.0.7",
"git": "https://github.com/bevanhunt/meteor-leaflet.git"
}
View
@@ -143,11 +143,11 @@
height: 27px;
}
.leaflet-control-zoom-in {
- background-image: url(../../../leaflet/zoom-in.png);
+ background-image: url(zoom-in.png);
margin-bottom: 5px;
}
.leaflet-control-zoom-out {
- background-image: url(../../../leaflet/zoom-out.png);
+ background-image: url(zoom-out.png);
}
.leaflet-control-layers {
@@ -158,7 +158,7 @@
border-radius: 8px;
}
.leaflet-control-layers-toggle {
- background-image: url(../../../leaflet/layers.png);
+ background-image: url(layers.png);
width: 36px;
height: 36px;
}

0 comments on commit 37ce617

Please sign in to comment.