Browse Source

Formatting

master
Chimo 6 years ago
parent
commit
3099388f6a
3 changed files with 6 additions and 7 deletions
  1. +1
    -0
      .jscsrc
  2. +1
    -3
      examples/pois/js/pois.js
  3. +4
    -4
      src/map.js

+ 1
- 0
.jscsrc View File

@ -6,6 +6,7 @@
"requireBlocksOnNewline": true,
"requireSpaceBeforeBlockStatements": true,
"disallowMixedSpacesAndTabs": true,
"validateIndentation": 4,
"excludeFiles": [
"dist/**",
"src/extlib/**"


+ 1
- 3
examples/pois/js/pois.js View File

@ -55,8 +55,6 @@
Pullet.nominatim.lookup( points )
.then( function( nomData ) {
console.log( nomData );
/* Build unsorted list */
listPlaces( $nearby, nomData );
@ -77,5 +75,5 @@
.catch( function( err ) {
window.alert( err.message );
} );
} );
} );
}() );

+ 4
- 4
src/map.js View File

@ -1,5 +1,5 @@
( function() {
/*global ol: false*/
/*global ol: false, Pullet: false*/
"use strict";
var _Pullet = window.Pullet || {},
@ -59,7 +59,7 @@
continue;
}
// create markers
// Create markers
markers.push(
new ol.Feature( {
geometry: new ol.geom.Point( ol.proj.transform( [ lon, lat ], "EPSG:4326", "EPSG:3857" ) ),
@ -69,7 +69,7 @@
);
}
// create and return layer
// Create and return layer
return new ol.layer.Vector( {
source: new ol.source.Vector( { features: markers } ),
style: createStyle( ( Pullet.paths.images || "" ) + "marker-green.png" )
@ -91,7 +91,7 @@
anchorYUnits: "pixels",
opacity: 0.75,
src: src
}
}
)
}
);


Loading…
Cancel
Save