Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed May 14, 2013
0 parents commit a3e4151
Show file tree
Hide file tree
Showing 1,290 changed files with 323,045 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
59 changes: 59 additions & 0 deletions Gruntfile.js
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');

};
15 changes: 15 additions & 0 deletions README.md
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
30 changes: 30 additions & 0 deletions demo/index.html
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>
5 changes: 5 additions & 0 deletions dist/esri-leaflet.min.js

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

5 changes: 5 additions & 0 deletions dist/versions/esri-leaflet-0.0.1.min.js

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

11 changes: 11 additions & 0 deletions esri-leaflet.sublime-project
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"
}
]
}

0 comments on commit a3e4151

Please sign in to comment.