Comparing version 0.1.3 to 1.0.0
@@ -44,3 +44,4 @@ var getPosition = require('geo-position'); | ||
function onPosition (err, position) { | ||
if (err) return console.error(err); | ||
if (err) return self.emit('error', err); | ||
self.emit('position', position); | ||
@@ -47,0 +48,0 @@ |
{ | ||
"name": "osm", | ||
"description": "Display OpenStreetMaps.", | ||
"version": "0.1.3", | ||
"version": "1.0.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -38,3 +38,4 @@ | ||
Set the position to (`lat`, `long`). If you don't call this method `osm` will try to get the current position using the geolocation api. | ||
Set the position to (`lat`, `long`). If you don't call this method `osm` will | ||
try to get the current position using the geolocation api. | ||
@@ -45,3 +46,4 @@ This method is chainable. | ||
Set the map's radius in degrees. If you don't call this method, it defaults to `0.002`. | ||
Set the map's radius in degrees. If you don't call this method, it defaults to | ||
`0.002`. | ||
@@ -59,2 +61,7 @@ This method is chainable. | ||
### osm#on('error', fn) | ||
If there's an error requesting the user's geolocation, `fn` will be called | ||
with it. | ||
## Installation | ||
@@ -61,0 +68,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
25852
1
95