How to use the @igo2/geo.createOverlayDefaultStyle function in @igo2/geo

To help you get started, we’ve selected a few @igo2/geo 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 infra-geo-ouverte / igo2 / src / app / pages / portal / toast-panel / toast-panel.component.ts View on Github external
private getMarkerStyle(feature: Feature) {
    if (!feature.geometry || feature.geometry.type === 'Point') {
      return createOverlayMarkerStyle({text: feature.meta.mapTitle, opacity: 0.5});
    } else if (feature.geometry.type === 'LineString' || feature.geometry.type === 'MultiLineString') {
      return createOverlayDefaultStyle({text: feature.meta.mapTitle, strokeOpacity: 0.5});
    } else {
      return createOverlayDefaultStyle({text: feature.meta.mapTitle, fillOpacity: 0.15});
    }
  }
github infra-geo-ouverte / igo2 / src / app / pages / portal / toast-panel / toast-panel.component.ts View on Github external
private getSelectedMarkerStyle(feature: Feature)  {
    if (!feature.geometry || feature.geometry.type === 'Point') {
      return createOverlayMarkerStyle({text: feature.meta.mapTitle});
    } else {
      return createOverlayDefaultStyle({text: feature.meta.mapTitle});
    }
  }