-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a3e4151
Showing
1,290 changed files
with
323,045 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
jshint: { | ||
options: { | ||
curly: true, | ||
eqeqeq: true, | ||
immed: true, | ||
latedef: true, | ||
newcap: true, | ||
noarg: true, | ||
sub: true, | ||
undef: true, | ||
boss: true, | ||
eqnull: true, | ||
browser: true, | ||
globals: { | ||
XMLHttpRequest: true, | ||
ActiveXObject: true, | ||
module: true, | ||
L:true | ||
} | ||
}, | ||
all: ['Gruntfile.js', 'src/**/*.js'] | ||
}, | ||
watch: { | ||
files: ['Gruntfile.js', 'src/**/*.js'], | ||
tasks: 'default' | ||
}, | ||
uglify: { | ||
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' + | ||
'*/\n\n' | ||
}, | ||
dist: { | ||
files: { | ||
'dist/esri-leaflet.min.js': ['src/**/*.js'] | ||
} | ||
}, | ||
versioned: { | ||
files: { | ||
'dist/versions/esri-leaflet-<%= pkg.version %>.min.js': ['src/**/*.js'] | ||
} | ||
} | ||
} | ||
}); | ||
|
||
grunt.registerTask('default', ['jshint']); | ||
grunt.registerTask('build', ['default', 'uglify']); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Esri Leaflet | ||
|
||
Leaflet wrappers for Esri Services. Currenly only supports loading Esri map tiles. | ||
|
||
```js | ||
map = L.map("map").setView([37.8065289741725, -122.3631477355957], 12); | ||
L.esri.tileLayer("Topographic").addTo(map); | ||
``` | ||
|
||
## TileLayer | ||
|
||
`L.esri.TileLayer(style, options)` - accepts a sting mapping to a set of Esri tiles. Valid options are `Streets`, `Topographic`, `Oceans`, `NationalGeographic`, `Gray`, `GrayLabels`, `Imagery` or `ImageryLabels`. The options parameter can be any options that you could normally pass to [L.TileLayer]http://leafletjs.com/reference.html#tilelayer. | ||
|
||
# The Future! | ||
* FeatureLayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Scratch</title> | ||
<link rel="stylesheet" href="../vendor/leaflet/leaflet.css" /> | ||
<link rel="stylesheet" href="../src/esri-leaflet.css" /> | ||
<!--[if lte IE 8]> | ||
<link rel="stylesheet" href="leaflet.ie.css" /> | ||
<![endif]--> | ||
|
||
<script src="../vendor/leaflet/leaflet-src.js"></script> | ||
<script src="../src/esri-leaflet.js"></script> | ||
<style> | ||
html, body, #map { | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="map"></div> | ||
<script> | ||
map = L.map('map').setView([37.8065289741725, -122.3631477355957], 12); | ||
L.esri.tileLayer("Topographic", { | ||
detectRetina: true | ||
}).addTo(map); | ||
</script> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"folders": | ||
[ | ||
{ | ||
"path": "/Users/patricklocal/Projects/geoloqi/esri-leaflet" | ||
}, | ||
{ | ||
"path": "/Users/patricklocal/Projects/arcgis-js/jsapi/src/js/esri" | ||
} | ||
] | ||
} |
Oops, something went wrong.