Skip to content

Commit

Permalink
prepare relase 0.1.5 and bower
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMufflon committed Oct 7, 2015
1 parent f5dc303 commit 062f759
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 48 deletions.
29 changes: 29 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Leaflet.Coordinates",
"version": "0.1.5",
"homepage": "https://github.com/MrMufflon/Leaflet.Coordinates",
"authors": [
"MrMufflon"
],
"description": "A Leaflet plugin to view coordinates",
"main": [
"dist/Leaflet.Coordinates-0.1.5.min.js",
"dist/Leaflet.Coordinates-0.1.5.css"
],
"keywords": [
"Leaflet",
"Coorniates",
"map"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"leaflet-dist": "0.7.x"
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ L.Control.Coordinates = L.Control.extend({
//label templates for usage if no labelFormatter function is defined
labelTemplateLat: "Lat: {y}",
labelTemplateLng: "Lng: {x}",
//label formatter functions
//label formatter functions
labelFormatterLat: undefined,
labelFormatterLng: undefined,
//switch on/off input fields on click
Expand All @@ -22,7 +22,7 @@ L.Control.Coordinates = L.Control.extend({
//if true lat-lng instead of lng-lat label ordering is used
useLatLngOrder: false,
//if true user given coordinates are centered directly
centerUserCoordinates:false,
centerUserCoordinates: false,
//leaflet marker type
markerType: L.marker,
//leaflet marker properties
Expand Down Expand Up @@ -120,11 +120,11 @@ L.Control.Coordinates = L.Control.extend({
marker = this._marker = this._createNewMarker();
marker.on("click", this._clearMarker, this);
}
var ll=new L.LatLng(y, x);
var ll = new L.LatLng(y, x);
marker.setLatLng(ll);
marker.addTo(this._map);
if (this.options.centerUserCoordinates){
this._map.setView(ll,this._map.getZoom());
if (this.options.centerUserCoordinates) {
this._map.setView(ll, this._map.getZoom());
}
}
},
Expand Down Expand Up @@ -218,8 +218,8 @@ L.Control.Coordinates = L.Control.extend({
.on(close, 'dblclick', stop)
.on(close, 'click', L.DomEvent.preventDefault)
.on(close, 'click', function() {
this._map.removeLayer(m);
}, this);
this._map.removeLayer(m);
}, this);

m.bindPopup(container);
m.addTo(this._map);
Expand Down Expand Up @@ -285,7 +285,8 @@ L.Map.addInitHook(function() {
this.coordinateControl = new L.Control.Coordinates();
this.addControl(this.coordinateControl);
}
});L.NumberFormatter = {
});
L.NumberFormatter = {
round: function(num, dec, sep) {
var res = L.Util.formatNum(num, dec) + "",
numbers = res.split(".");
Expand Down
75 changes: 37 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
{
"name": "Leaflet.Coordinates",
"version": "0.1.4",
"description": "A Leaflet plugin to view coordinates",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-cssmin": "~0.6.1",
"grunt-contrib-csslint": "~0.1.2",
"grunt-contrib-jshint": "~0.11.1",
"grunt-contrib-connect": "~0.10",
"grunt-contrib-jasmine": "~0.8",
"jasmine": "~2.0"
},
"dependencies": {},
"repository": {
"type": "git",
"url": "https://github.com/MrMufflon/Leaflet.Coordinates.git"
},
"keywords": [
"gis",
"coordinates",
"leaflet",
"map",
"sdi"
],
"author": "Felix Bache",
"licenses": [{
"type": "CC BY 3",
"url": "http://creativecommons.org/licenses/by/3.0/"
"name": "Leaflet.Coordinates",
"version": "0.1.5",
"description": "A Leaflet plugin to view coordinates",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-cssmin": "~0.6.1",
"grunt-contrib-csslint": "~0.1.2",
"grunt-contrib-jshint": "~0.11.1",
"grunt-contrib-connect": "~0.10",
"grunt-contrib-jasmine": "~0.8",
"jasmine": "~2.0"
},
"dependencies": {},
"repository": {
"type": "git",
"url": "https://github.com/MrMufflon/Leaflet.Coordinates.git"
},
"keywords": [
"gis",
"coordinates",
"leaflet",
"map",
"sdi"
],
"author": "Felix Bache",
"licenses": [{
"type": "CC BY 3",
"url": "http://creativecommons.org/licenses/by/3.0/"
}],
"readmeFilename": "README.md",
"gitHead": "3b5c7d7af4f735c9bb2a925aa0c4a839f61bb470",
"bugs": {
"url": "https://github.com/MrMufflon/Leaflet.Coordinates/issues"
}
],
"readmeFilename": "README.md",
"gitHead": "3b5c7d7af4f735c9bb2a925aa0c4a839f61bb470",
"bugs": {
"url": "https://github.com/MrMufflon/Leaflet.Coordinates/issues"
}
}
}

0 comments on commit 062f759

Please sign in to comment.