openlayers-8.x-4.x-dev/src/Plugin/Component/Graticule/js/graticule.js
src/Plugin/Component/Graticule/js/graticule.js
Drupal.openlayersPluginManager.register({
fs: 'openlayers.Component:Graticule',
init: function(data) {
if (typeof(ol.Graticule) === 'function') {
var graticule = new ol.Graticule({
strokeStyle: new ol.style.Stroke({
color: 'rgba(' + data.opt.rgba + ')',
width: data.opt.width,
lineDash: data.opt.lineDash.split(',').map(Number)
}),
map: data.map,
projection: data.map.getView().getProjection()
});
}
}
});
