Skip to content

How to remove buildings extruded? #165

Description

@paolosantarsiero

Hi,
i'm Vue developer and i would know how can i remove extruding buildings when tilt is set with HARP Engine.
I would to remove POIS too.
I can show you my code:

async initializeHereMap() {
      // Initialize the platform object:
      this.platform = new H.service.Platform({
        apikey: this.apikey,
      });

      // rendering map
      const mapContainer = this.$refs.hereMap as HTMLElement;

      const engineType = window.H.Map.EngineType['HARP'];
      const defaultLayers = this.platform.createDefaultLayers({
        engineType,
        opt_style: 'reduced.day',
        opt_lang: 'it-IT',
        opt_pois: false,
      });

      const center =
        this.globalPosition && isGeopoint(this.globalPosition)
          ? this.globalPosition
          : { lat: 43.1197, lng: 12.347098 };
      // Instantiate (and display) a map object:
      this.map = new H.Map(mapContainer, defaultLayers.vector.normal.map, {
        engineType,
        center,
        zoom: 15,
      });
      this.map.setCenter(center, true);
      window.addEventListener('resize-map', this.resizeMap);

      if (this.interactive) {
        new H.mapevents.Behavior(new H.mapevents.MapEvents(this.map));
      }

      this.map.storeContent((req: any) => {
        if (req.getState() === H.util.Request.State.COMPLETE) {
          console.log('Raster tiles of maps base layer stored successfully.');
          window.addEventListener('message', this.handlePositionMessage);
          this.loadPolyline(true);
        } else if (req.getState() === H.util.Request.State.ERROR) {
          console.log(
            'Something happened, storing the content was not successful.'
          );
        }
      });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions