openlayers-8.x-4.x-dev/src/Plugin/Layer/Graticule/js/graticule.js

src/Plugin/Layer/Graticule/js/graticule.js
Drupal.openlayersPluginManager.register({
  fs: 'openlayers.Layer:Graticule',
  init: function(data) {
    if (typeof(ol.layer.Graticule) === 'function') {
      var graticule = new ol.layer.Graticule({
        strokeStyle: new ol.style.Stroke({
          color: 'rgba(' + data.opt.rgba + ')',
          width: data.opt.width,
          lineDash: data.opt.lineDash.split(',').map(Number)
        }),
        showLabels: data.opt.showLabels
      });
      return graticule;
    }
  }
});

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc