How to use the vuelayers.core.styleHelper function in vuelayers

To help you get started, we’ve selected a few vuelayers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ghettovoice / vuelayers / docs / components / demo-app.vue View on Github external
pacmanStyleFunc () {
      const pacman = [
        vlCore.styleHelper.style({
          strokeColor: '#de9147',
          strokeWidth: 3,
          fillColor: [222, 189, 36, 0.8],
        }),
      ]
      const path = [
        vlCore.styleHelper.style({
          strokeColor: 'blue',
          strokeWidth: 1,
        }),
        vlCore.styleHelper.style({
          imageRadius: 5,
          imageFillColor: 'orange',
          geom (feature) {
            // geometry is an LineString, convert it to MultiPoint to style vertex
            return vlCore.geomHelper.multiPoint(feature.getGeometry().getCoordinates())
github ghettovoice / vuelayers / docs / components / demo-app.vue View on Github external
return function __clusterStyleFunc (feature) {
        const size = feature.get('features').length
        let style = cache[size]

        if (!style) {
          style = vlCore.styleHelper.style({
            imageRadius: 10,
            strokeColor: '#fff',
            fillColor: '#3399cc',
            text: size.toString(),
            textFillColor: '#fff',
          })
          cache[size] = style
        }
        return [style]
      }
    },

vuelayers

Web map Vue components with the power of OpenLayers

MIT
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis