Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

sheetsee-maps

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sheetsee-maps - npm Package Compare versions

Comparing version
0.0.1
to
0.0.2
+2
-2
index.js

@@ -27,3 +27,2 @@ var mapbox = require('mapbox.js')

if (hasGeo && !lineItem.lat && !lineItem.long) handleLatLong(lineItem)
console.log("New Line", lineItem)
if (lineItem.linestring || lineItem.multipolygon) hasGeo = true

@@ -97,3 +96,4 @@ if (!hasGeo) return

module.exports.shapeJSON = function(lineItem, type, optionObj) {
module.exports.shapeJSON = shapeJSON
function shapeJSON(lineItem, type, optionObj) {
var lowercaseType = type.toLowerCase()

@@ -100,0 +100,0 @@ var coords

{
"name": "sheetsee-maps",
"version": "0.0.1",
"version": "0.0.2",
"description": "enables map creation functionality with sheetsee.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,2 +7,26 @@ # Sheetsee-maps

### Maps: Polygons and Lines
Sheetsee-maps now supports polygons and lines. So long as you have the correct coordinate structure in your cells, Sheetsee will add them to the geoJSON it creates for your maps. More details for coordinates of lines and polygons in geoJSON are [here](http://leafletjs.com/examples/geojson.html), but briefly:
A linestring:
```
[-122.41722106933594, 37.7663045891584], [-122.40477561950684, 37.77695634643178]
```
A polygon:
```
[-122.41790771484375, 37.740381166384914], [-122.41790771484375, 37.74520008134973], [-122.40966796874999, 37.74520008134973],[-122.40966796874999, 37.740381166384914], [-122.41790771484375, 37.740381166384914]
```
A Multipolygon:
```
[[-122.431640625, 37.79106586542567], [-122.431640625, 37.797441398913286], [-122.42666244506835, 37.797441398913286],[-122.42666244506835, 37.79106586542567], [-122.431640625, 37.79106586542567]],
[[-122.43352890014648, 37.78197638783258], [-122.43352890014648, 37.789031004883654], [-122.42443084716797, 37.789031004883654], [-122.42443084716797, 37.78197638783258], [-122.43352890014648, 37.78197638783258]]
### The Parts
You'll create a placeholder `<div>` in your HTML, CSS giving it a size and fire up a map from within `<script>` tags. You can also customize your popup content.

@@ -9,0 +33,0 @@