Skip to content

Provide instructions to actually render a map for a beginner? #78

@rmallick6806

Description

@rmallick6806

Can you provide a working code recipe for how to render a mapbox (or any map for that matter), a three js scene.

Here's a snippet I have added to the intro scene in ThreeJS: https://threejs.org/docs/#manual/en/introduction/Creating-a-scene, and while the cube renders, I don't see anything else happening from geo-three.

  // Create a map tiles provider object
  const provider = new MapBoxProvider(
    apiKey,
    'mapbox/satellite-v9',
    MapBoxProvider.STYLE,
    'png',
    false,
    'v9'
  );
  // Create the map view and add it to your THREE scene
  const map = new MapView(MapView.PLANAR, provider);
  scene.add(map);

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions