From 744b68ec45bb0ca73515daea72fdaea0df8876d2 Mon Sep 17 00:00:00 2001 From: Nate Goldman Date: Tue, 25 Feb 2014 12:52:07 -0700 Subject: [PATCH] Fix repo * Fixed version number and updated build (previous version was invalid -- try `npm install` with 0.0.1.beta.1.1) * Fixed imagemin task and removed extra images * Added license and fixed link referencing it * Added license, repo, and homepage to package.json --- Gruntfile.js | 4 +-- README.md | 14 ++++----- dist/esri-leaflet-geocoder-src.css | 4 +-- dist/esri-leaflet-geocoder-src.js | 4 +-- dist/esri-leaflet-geocoder.css | 4 +-- dist/esri-leaflet-geocoder.js | 6 ++-- dist/img/img/loading.gif | Bin 1231 -> 0 bytes dist/img/img/loading@2x.gif | Bin 2394 -> 0 bytes dist/img/img/search.png | Bin 486 -> 0 bytes dist/img/img/search@2x.png | Bin 818 -> 0 bytes dist/img/search.png | Bin 486 -> 486 bytes dist/img/search@2x.png | Bin 818 -> 818 bytes license.txt | 48 +++++++++++++++++++++++++++++ package.json | 11 +++++-- 14 files changed, 74 insertions(+), 21 deletions(-) delete mode 100644 dist/img/img/loading.gif delete mode 100644 dist/img/img/loading@2x.gif delete mode 100644 dist/img/img/search.png delete mode 100644 dist/img/img/search@2x.png create mode 100644 license.txt diff --git a/Gruntfile.js b/Gruntfile.js index 591b50c..9119128 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -29,7 +29,7 @@ module.exports = function(grunt) { options: { banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' + '* Copyright (c) <%= grunt.template.today("yyyy") %> Environmental Systems Research Institute, Inc.\n' + - '* Apache License' + + '* Apache 2.0 License ' + '*/\n\n' }, js: { @@ -65,7 +65,7 @@ module.exports = function(grunt) { expand: true, cwd: 'src/', src: ['img/*.{png,jpg,gif}'], - dest: 'dist/img' + dest: 'dist/' }] } }, diff --git a/README.md b/README.md index a9e3e59..7fe3794 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,13 @@ Take a look at the live demo at http://esri.github.io/esri-leaflet-geocoder/ var map = L.map('map').setView([45.5165, -122.6764], 12); var tiles = L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png").addTo(map); - + // create the geocoding control and add it to the map var searchControl = new L.esri.Controls.Geosearch().addTo(map); - + // create an empty layer group to store the results and add it to the map var results = new L.LayerGroup().addTo(map); - + // listen for the results event and add every result to the map searchControl.on("results", function(data){ results.clearLayers(); @@ -108,7 +108,7 @@ For reference here is the internal structure of the geocoder... ```html
- +