You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
map declares several variables as internal. It would be very useful to have those variables as part of the map instance.
This is an example from how these variables could be used from a page, for instance, for a button to change the wireframe value of an object, checking first if there's an object selected in the map. Currently you have to keep these variables in the page script side capturing first them from the corresponding events
$('#wireButton').on('click',function(){if(map.selectedObject){//if selectedObject is part of the instance we can do thisif(map.selectedObject.wireframe){map.selectedObject.wireframe=false;}else{map.selectedObject.wireframe=true;}}map.repaint=true;});
The variables to be part of the instance should be:
letselectedObject;//selected object through clickletdraggedObject;//dragged object through mousedown + mousemoveletdraggedAction;//dragged action to notify frontendletoveredObject;//overed object through mouseoverletoveredFeature;//overed state for extrusion layer featuresletselectedFeature;//selected state id for extrusion layer features
The text was updated successfully, but these errors were encountered:
- add options.rotate and options.scale for Objects3D #126
- Create a new example with Three.js extrusions based on standard geoJson #127 Added a new example [17-extrusions.html](https://github.com/jscastro76/threebox/blob/master/examples/17-extrusions.html)
- Convert internal variables (`selectedObject`, `draggedObject`, ...) into instance variables #130
- Deprecate `tb.setLayerZoomVisibility`, overlaps with `tb.toggleLayer` #134
- when an object is wireframed, all its clones are too #124
- Error when wireframing all the objects #131
- While dragging an object if mouse overs a label it stops dragging #132
- A layer shouldn't be shown explicitely if it's not in the right zoom range #133
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
#### ✨ Enhancements
- #125 three.js draw geojson.
- #126 add options.rotate and options.scale for Objects3D.
- #127 Create a new example with Three.js extrusions based on standard geoJson. Added a new example [17-extrusions.html](https://github.com/jscastro76/threebox/blob/master/examples/17-extrusions.html)
- #130 Convert internal variables (`selectedObject`, `draggedObject`, ...) into instance variables .
- #134 Deprecate `tb.setLayerZoomVisibility`, overlaps with `tb.toggleLayer`.
- #138 expose `SunCalc.toJulian`
#### 🪲 Bug fixes
- #124 when an object is wireframed, all its clones are too.
- #131 Error when wireframing all the objects.
- #132 While dragging an object if mouse overs a label it stops dragging.
- #133 A layer shouldn't be shown explicitely if it's not in the right zoom range.
map declares several variables as internal. It would be very useful to have those variables as part of the map instance.
This is an example from how these variables could be used from a page, for instance, for a button to change the wireframe value of an object, checking first if there's an object selected in the map. Currently you have to keep these variables in the page script side capturing first them from the corresponding events
The variables to be part of the instance should be:
The text was updated successfully, but these errors were encountered: