geojson2svg
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.geojson2svg=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
/*! | ||
@@ -85,3 +85,3 @@ * Node.JS module "Deep Extend" | ||
},{}],2:[function(require,module,exports){ | ||
},{}],2:[function(_dereq_,module,exports){ | ||
//index.js | ||
@@ -137,5 +137,5 @@ (function() { | ||
},{}],3:[function(require,module,exports){ | ||
},{}],3:[function(_dereq_,module,exports){ | ||
//converter.js | ||
var multi = require('multigeojson'); | ||
var multi = _dereq_('multigeojson'); | ||
function getCoordString(coords,res,origin) { | ||
@@ -219,5 +219,5 @@ //origin - svg image origin | ||
},{"multigeojson":2}],4:[function(require,module,exports){ | ||
var extend = require('deep-extend'), | ||
converter = require('./converter.js'); | ||
},{"multigeojson":2}],4:[function(_dereq_,module,exports){ | ||
var extend = _dereq_('deep-extend'), | ||
converter = _dereq_('./converter.js'); | ||
@@ -330,5 +330,4 @@ //g2svg as geojson2svg (shorthand) | ||
},{"./converter.js":3,"deep-extend":1}],5:[function(require,module,exports){ | ||
var extend = require('deep-extend'); | ||
var g2svg = require('./instance.js'); | ||
},{"./converter.js":3,"deep-extend":1}],5:[function(_dereq_,module,exports){ | ||
var g2svg = _dereq_('./instance.js'); | ||
var geojson2svg = function(viewportSize,options) { | ||
@@ -339,12 +338,9 @@ if(!viewportSize) return; | ||
if(typeof module !== 'undefined' && module.exports) { | ||
module.exports = geojson2svg; | ||
} | ||
if(window !== 'undefined') { | ||
window.geojson2svg = geojson2svg; | ||
} | ||
module.exports = geojson2svg; | ||
},{"./instance.js":4,"deep-extend":1}]},{},[5]) | ||
},{"./instance.js":4}]},{},[5]) | ||
(5) | ||
}); | ||
//# sourceMappingURL=geojson2svg.js.map |
@@ -1,5 +0,4 @@ | ||
//(function() { | ||
var dataURLPoly = 'http://54.255.134.125:3005/examples/data/countries.geo.json'; | ||
//var dataURL = 'http://54.255.134.125:3005/examples/data/CAN.geo.json'; | ||
var dataURLPoint = 'http://54.255.134.125:3005/examples/data/capitals.json'; | ||
var dataURLPoly = './data/countries.geo.json'; | ||
//var dataURL = './data/CAN.geo.json'; | ||
var dataURLPoint = './data/capitals.json'; | ||
getjson(dataURLPoint,drawGeoJSON); | ||
@@ -9,3 +8,2 @@ getjson(dataURLPoly,drawGeoJSON); | ||
function drawGeoJSON(resp) { | ||
console.log('i am drawing'); | ||
var geojson = JSON.parse(resp); | ||
@@ -34,2 +32,1 @@ var svgMap = document.getElementById('map'); | ||
} | ||
//})(); |
{ | ||
"name": "geojson2svg", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Converts geojson to svg/path string given svg viewport size and maps extent.", | ||
@@ -5,0 +5,0 @@ "main": "src/main.js", |
@@ -1,2 +0,1 @@ | ||
var extend = require('deep-extend'); | ||
var g2svg = require('./instance.js'); | ||
@@ -8,7 +7,2 @@ var geojson2svg = function(viewportSize,options) { | ||
if(typeof module !== 'undefined' && module.exports) { | ||
module.exports = geojson2svg; | ||
} | ||
if(window !== 'undefined') { | ||
window.geojson2svg = geojson2svg; | ||
} | ||
module.exports = geojson2svg; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1449443
6743