add immoweb ui
This commit is contained in:
parent
7e8c79d3d1
commit
151da16c27
266 changed files with 264879 additions and 0 deletions
20
immoweb/node_modules/@turf/center/LICENSE
generated
vendored
Normal file
20
immoweb/node_modules/@turf/center/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017 TurfJS
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
143
immoweb/node_modules/@turf/center/README.md
generated
vendored
Normal file
143
immoweb/node_modules/@turf/center/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
# @turf/center
|
||||
|
||||
# center
|
||||
|
||||
Takes a [Feature](http://geojson.org/geojson-spec.html#feature-objects) or [FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects) and returns the absolute center point of all features.
|
||||
|
||||
**Parameters**
|
||||
|
||||
- `layer` **([Feature](http://geojson.org/geojson-spec.html#feature-objects) \| [FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects))** input features
|
||||
|
||||
**Examples**
|
||||
|
||||
```javascript
|
||||
var features = {
|
||||
"type": "FeatureCollection",
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.522259, 35.4691]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.502754, 35.463455]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.508269, 35.463245]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.516809, 35.465779]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.515372, 35.467072]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.509363, 35.463053]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.511123, 35.466601]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.518547, 35.469327]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.519706, 35.469659]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.517839, 35.466998]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.508678, 35.464942]
|
||||
}
|
||||
}, {
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [-97.514914, 35.463453]
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
var centerPt = turf.center(features);
|
||||
centerPt.properties['marker-size'] = 'large';
|
||||
centerPt.properties['marker-color'] = '#000';
|
||||
|
||||
var resultFeatures = features.features.concat(centerPt);
|
||||
var result = {
|
||||
"type": "FeatureCollection",
|
||||
"features": resultFeatures
|
||||
};
|
||||
|
||||
//=result
|
||||
```
|
||||
|
||||
Returns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** a Point feature at the absolute center point of all input features
|
||||
|
||||
<!-- This file is automatically generated. Please don't edit it directly:
|
||||
if you find an error, edit the source file (likely index.js), and re-run
|
||||
./scripts/generate-readmes in the turf project. -->
|
||||
|
||||
---
|
||||
|
||||
This module is part of the [Turfjs project](http://turfjs.org/), an open source
|
||||
module collection dedicated to geographic algorithms. It is maintained in the
|
||||
[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create
|
||||
PRs and issues.
|
||||
|
||||
### Installation
|
||||
|
||||
Install this module individually:
|
||||
|
||||
```sh
|
||||
$ npm install @turf/center
|
||||
```
|
||||
|
||||
Or install the Turf module that includes it as a function:
|
||||
|
||||
```sh
|
||||
$ npm install @turf/turf
|
||||
```
|
||||
12
immoweb/node_modules/@turf/center/index.d.ts
generated
vendored
Normal file
12
immoweb/node_modules/@turf/center/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/// <reference types="geojson" />
|
||||
|
||||
type Feature = GeoJSON.Feature<any>;
|
||||
type Features = GeoJSON.FeatureCollection<any>;
|
||||
type Point = GeoJSON.Feature<GeoJSON.Point>;
|
||||
|
||||
/**
|
||||
* http://turfjs.org/docs/#center
|
||||
*/
|
||||
declare function center(features: Feature | Features): Point;
|
||||
declare namespace center { }
|
||||
export = center;
|
||||
121
immoweb/node_modules/@turf/center/index.js
generated
vendored
Normal file
121
immoweb/node_modules/@turf/center/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
var bbox = require('@turf/bbox'),
|
||||
point = require('@turf/helpers').point;
|
||||
|
||||
/**
|
||||
* Takes a {@link Feature} or {@link FeatureCollection} and returns the absolute center point of all features.
|
||||
*
|
||||
* @name center
|
||||
* @param {(Feature|FeatureCollection)} layer input features
|
||||
* @return {Feature<Point>} a Point feature at the absolute center point of all input features
|
||||
* @addToMap features, centerPt
|
||||
* @example
|
||||
* var features = {
|
||||
* "type": "FeatureCollection",
|
||||
* "features": [
|
||||
* {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.522259, 35.4691]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.502754, 35.463455]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.508269, 35.463245]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.516809, 35.465779]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.515372, 35.467072]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.509363, 35.463053]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.511123, 35.466601]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.518547, 35.469327]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.519706, 35.469659]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.517839, 35.466998]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.508678, 35.464942]
|
||||
* }
|
||||
* }, {
|
||||
* "type": "Feature",
|
||||
* "properties": {},
|
||||
* "geometry": {
|
||||
* "type": "Point",
|
||||
* "coordinates": [-97.514914, 35.463453]
|
||||
* }
|
||||
* }
|
||||
* ]
|
||||
* };
|
||||
*
|
||||
* var centerPt = turf.center(features);
|
||||
* centerPt.properties['marker-size'] = 'large';
|
||||
* centerPt.properties['marker-color'] = '#000';
|
||||
*
|
||||
* var resultFeatures = features.features.concat(centerPt);
|
||||
* var result = {
|
||||
* "type": "FeatureCollection",
|
||||
* "features": resultFeatures
|
||||
* };
|
||||
*
|
||||
* //=result
|
||||
*/
|
||||
|
||||
module.exports = function (layer) {
|
||||
var ext = bbox(layer);
|
||||
var x = (ext[0] + ext[2]) / 2;
|
||||
var y = (ext[1] + ext[3]) / 2;
|
||||
return point([x, y]);
|
||||
};
|
||||
69
immoweb/node_modules/@turf/center/package.json
generated
vendored
Normal file
69
immoweb/node_modules/@turf/center/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"_from": "@turf/center@^3.10.3",
|
||||
"_id": "@turf/center@3.14.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-EIOspPE308SYiVV0DH1EDEXMnsw=",
|
||||
"_location": "/@turf/center",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "@turf/center@^3.10.3",
|
||||
"name": "@turf/center",
|
||||
"escapedName": "@turf%2fcenter",
|
||||
"scope": "@turf",
|
||||
"rawSpec": "^3.10.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^3.10.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/hexgrid-heatmap"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@turf/center/-/center-3.14.0.tgz",
|
||||
"_shasum": "1083aca4f137d3c4988955740c7d440c45cc9ecc",
|
||||
"_spec": "@turf/center@^3.10.3",
|
||||
"_where": "/home/kadir/workspace/webimmo/node_modules/hexgrid-heatmap",
|
||||
"author": {
|
||||
"name": "Turf Authors"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Turfjs/turf/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@turf/bbox": "^3.14.0",
|
||||
"@turf/helpers": "^3.13.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "turf center module",
|
||||
"devDependencies": {
|
||||
"benchmark": "^1.0.0",
|
||||
"tape": "^3.5.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/Turfjs/turf",
|
||||
"keywords": [
|
||||
"centroid",
|
||||
"geojson",
|
||||
"gis",
|
||||
"geospatial",
|
||||
"geo",
|
||||
"turf"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "@turf/center",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Turfjs/turf.git"
|
||||
},
|
||||
"scripts": {
|
||||
"bench": "node bench.js",
|
||||
"test": "node test.js"
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "3.14.0"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue