Skip to content

Commit

Permalink
jshint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Nov 19, 2013
1 parent 9d452c8 commit 0e2e8b9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Define globals exposed by jQuery.
"jquery": true,

"globals": {"L": false, 'proj4': false},
"globals": {"L": false, "proj4": false},

/*
* ENFORCING OPTIONS
Expand Down
26 changes: 13 additions & 13 deletions examples/geojson-crs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ var map = L.map('map').setView([44.97,-93.24], 11);
// MapQuest OSM Tiles

// Attribution (https://gist.github.com/mourner/1804938)
var osmAttr = 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>';
var mqTilesAttr = 'Tiles &copy; <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png" />';
var osmAttr = 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
mqTilesAttr = 'Tiles &copy; <a href="http://www.mapquest.com/"" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png" />';

L.tileLayer(
'http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png',
Expand All @@ -15,21 +15,21 @@ L.tileLayer(
).addTo(map);

// GeoJSON layer (UTM15)
proj4.defs("EPSG:26915", "+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs");
proj4.defs('EPSG:26915', '+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs');

var geojson = {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [481650, 4980105],
'type': 'Feature',
'geometry': {
'type': 'Point',
'coordinates': [481650, 4980105],
},
"properties": {
"name": "University of Minnesota"
'properties': {
'name': 'University of Minnesota'
},
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:EPSG::26915"
'crs': {
'type': 'name',
'properties': {
'name': 'urn:ogc:def:crs:EPSG::26915'
}
}
};
Expand Down
6 changes: 0 additions & 6 deletions examples/local-projections/nz/script_auckland.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,3 @@ var tileUrl = 'http://maps.aucklandcouncil.govt.nz/ArcGIS/rest/services/Aerials/

map.addLayer(tilelayer);
map.setView([-36.852931, 174.762057], 10);

function onMapMouseMove(e) {
// console.log("xy: " + e.latlng);
}

map.on('mousemove', onMapMouseMove);
6 changes: 0 additions & 6 deletions examples/local-projections/nz/script_wellington.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,3 @@ var tileUrl = 'http://gis.wcc.govt.nz/arcgis/rest/services/Basemap/Aerial_Photo/

map.addLayer(tilelayer);
map.setView([-41.288889, 174.777222], 5);

function onMapMouseMove(e) {
// console.log("xy: " + e.latlng);
}

map.on('mousemove', onMapMouseMove);
8 changes: 4 additions & 4 deletions examples/osm-tiled/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ var crs = new L.Proj.CRS('EPSG:3006',
});

L.tileLayer('http://api.geosition.com/tile/osm-bright-3006/{z}/{x}/{y}.png', {
maxZoom: 14
,minZoom: 0
,continuousWorld: true
,attribution: 'Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>, Imagery &copy; 2013 <a href="http://www.kartena.se/">Kartena</a>'
maxZoom: 14,
minZoom: 0,
continuousWorld: true,
attribution: 'Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>, Imagery &copy; 2013 <a href="http://www.kartena.se/">Kartena</a>'
}).addTo(map);

map.setView([57.704, 11.965], 13);
26 changes: 12 additions & 14 deletions examples/tms-tiled/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@ var crs = new L.Proj.CRS.TMS(
'EPSG:5181',
'+proj=tmerc +lat_0=38 +lon_0=127 +k=1 +x_0=200000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
[-30000, -60000, 494288, 464288],
{
resolutions: [2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5, 0.25]
}
{ resolutions: [2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5, 0.25] }
),
map = L.map('map', {
crs: crs,
continuousWorld: true,
worldCopyJump: false,
zoomControl: true
crs: crs,
continuousWorld: true,
worldCopyJump: false,
zoomControl: true
});

new L.Proj.TileLayer.TMS("http://i{s}.maps.daum-img.net/map/image/G03/i/1.20/L{z}/{y}/{x}.png", crs, {
maxZoom: 14,
minZoom: 0,
zoomReverse: true,
subdomains: '0123',
continuousWorld: true,
attribution: 'ⓒ 2012 Daum'
new L.Proj.TileLayer.TMS('http://i{s}.maps.daum-img.net/map/image/G03/i/1.20/L{z}/{y}/{x}.png', crs, {
maxZoom: 14,
minZoom: 0,
zoomReverse: true,
subdomains: '0123',
continuousWorld: true,
attribution: 'ⓒ 2012 Daum'
}).addTo(map);

map.setView([40.0, 127.0], 0);

0 comments on commit 0e2e8b9

Please sign in to comment.