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

Problema ao gerar obj #251

Open
fabricioviero opened this issue Mar 28, 2022 · 0 comments
Open

Problema ao gerar obj #251

fabricioviero opened this issue Mar 28, 2022 · 0 comments

Comments

@fabricioviero
Copy link

Can not workin .obj ... where is the error?

<title>OSM Buildings</title> <style> html, body { margin: 0; padding: 0; width: 100%; height: 100%; }
#map {
  width: 100%;
  height: 100%;
}

.control {
  position: absolute;
  left: 0;
  z-index: 1000;
}

.control.tilt {
  top: 0;
}

.control.rotation {
  top: 45px;
}

.control.zoom {
  top: 90px;
}

.control.zoom button{
  font-weight: normal;
}

.control button {
  width: 30px;
  height: 30px;
  margin: 15px 0 0 15px;
  border: 1px solid #999999;
  background: #ffffff;
  opacity: 0.6;
  border-radius: 5px;
  box-shadow: 0 0 5px #666666;
  font-weight: bold;
  text-align: center;
}

.control button:hover {
  opacity: 1;
  cursor: pointer;
}
</style> <script src="[OSMBuildings.js](view-source:https://ciosp.santamaria.rs.gov.br/mapa/3d/OSMBuildings.js)"></script>
↙ ↗
↶ ↷
- +
<script> const osmb = new OSMBuildings({ container: 'map', zoom: 16, minZoom: 8, position: { latitude: -29.6859417, longitude: -53.8009077 }, state: true, // stores map position/rotation in url attribution: '© 3D OSM Buildings' }); osmb.addMapTiles( 'https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTAsdfsd2emYycXBndH14AriISLbB6B5aw', { attribution: '© Data OpenStreetMap · © Map Mapbox' } ); osmb.addGeoJSONTiles('https://{s}.data.osmbuildings.org/0.2/anonymous/tile/{z}/{x}/{y}.json'); osmb.setPosition({latitude: -29.6861599, longitude: -53.806654}); osmb.setTilt(30); osmb.setZoom(19); osmb.addOBJ('sphere.obj', { latitude: -29.6861599, longitude: -53.806654 }, { id: "my_object_1", color: 'red'}); </script>
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