Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove buildings extruded? #165

Open
paolosantarsiero opened this issue Sep 12, 2024 · 0 comments
Open

How to remove buildings extruded? #165

paolosantarsiero opened this issue Sep 12, 2024 · 0 comments

Comments

@paolosantarsiero
Copy link

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.'
          );
        }
      });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant