Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

ol-mapbox-style

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ol-mapbox-style - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

36

dist/olms.js

@@ -26,3 +26,4 @@ (function(_g){(function(f){var r=(typeof require==='function'?require:function(name){return {"_":null,"openlayers":ol}[name];});if (typeof exports==='object'&&typeof module!=='undefined'){module.exports=f(r)}else if(typeof define==='function'&&define.amd){define(["_","openlayers"],f.bind(_g,r))}else{f(r)}})(function(require,define,module,exports){var _m=(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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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){

'icon-rotate',
'icon-size'
'icon-size',
'circle-radius'
],

@@ -41,3 +42,5 @@ 'piecewise-constant': [

'text-font',
'text-halo-color'
'text-halo-color',
'circle-color',
'circle-stroke-color'
]

@@ -63,3 +66,5 @@ };

'icon-rotate': 0,
'icon-size': 1
'icon-size': 1,
'circle-color' : '#000000',
'circle-stroke-color' : '#000000'
};

@@ -466,3 +471,3 @@

paint['line-dasharray'](zoom).map(function(x) {
return x * width * ol.has.DEVICE_PIXEL_RATIO;
return x * width;
}) : null);

@@ -500,2 +505,25 @@ style.setZIndex(i);

if (type == 'Point' && 'circle-radius' in paint) {
++stylesLength;
var cache_key = paint['circle-radius'](zoom) + '.' +
paint['circle-stroke-color'](zoom) + '.' +
paint['circle-color'](zoom);
style = iconImageCache[cache_key];
if(!style) {
style = new ol.style.Style({
image: new ol.style.Circle({
radius: paint['circle-radius'](zoom),
stroke: new ol.style.Stroke({
color: colorWithOpacity(paint['circle-stroke-color'](zoom), opacity)
}),
fill: new ol.style.Stroke({
color: colorWithOpacity(paint['circle-color'](zoom), opacity)
})
})
});
}
style.setZIndex(i);
styles[stylesLength] = style;
}
var label;

@@ -502,0 +530,0 @@ if ('text-field' in paint) {

@@ -25,3 +25,4 @@ /*

'icon-rotate',
'icon-size'
'icon-size',
'circle-radius'
],

@@ -40,3 +41,5 @@ 'piecewise-constant': [

'text-font',
'text-halo-color'
'text-halo-color',
'circle-color',
'circle-stroke-color'
]

@@ -62,3 +65,5 @@ };

'icon-rotate': 0,
'icon-size': 1
'icon-size': 1,
'circle-color' : '#000000',
'circle-stroke-color' : '#000000'
};

@@ -465,3 +470,3 @@

paint['line-dasharray'](zoom).map(function(x) {
return x * width * ol.has.DEVICE_PIXEL_RATIO;
return x * width;
}) : null);

@@ -499,2 +504,25 @@ style.setZIndex(i);

if (type == 'Point' && 'circle-radius' in paint) {
++stylesLength;
var cache_key = paint['circle-radius'](zoom) + '.' +
paint['circle-stroke-color'](zoom) + '.' +
paint['circle-color'](zoom);
style = iconImageCache[cache_key];
if(!style) {
style = new ol.style.Style({
image: new ol.style.Circle({
radius: paint['circle-radius'](zoom),
stroke: new ol.style.Stroke({
color: colorWithOpacity(paint['circle-stroke-color'](zoom), opacity)
}),
fill: new ol.style.Stroke({
color: colorWithOpacity(paint['circle-color'](zoom), opacity)
})
})
});
}
style.setZIndex(i);
styles[stylesLength] = style;
}
var label;

@@ -501,0 +529,0 @@ if ('text-field' in paint) {

5

package.json
{
"name": "ol-mapbox-style",
"version": "0.0.11",
"version": "0.0.12",
"description": "Use Mapbox style objects with OpenLayers",

@@ -20,2 +20,5 @@ "main": "index.js",

"contributors": [{
"name": "Dan 'Ducky' Little",
"email": "danlittle@yahoo.com"
}, {
"name": "Christian Mayer",

@@ -22,0 +25,0 @@ "email": "chris@meggsimum.de"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc