• Rurik Bugdanov's avatar
    Place a marker in the scene on map ctrl-click · 7ac7ac50
    Rurik Bugdanov authored
    (using view._scene._nameSpace.doc.ctx.pickValue())
    
    The problem is that after changing the viewpoint the scene must be
    rendered before calling pickValue() and that I do not know how to use
    an offscreen scene with x3dom.
    
    The workaround I found is to change the viewpoint on ctrl-mousemove over the
    map, so that when the map is clicked, the scene needed for pickValue() is
    already rendererd and pickvalue cam return the proper coordinates.
    
    TODO:
    - change the viewpoint on keydown ctrl over the map (dont wait mousemove)
    - implement code related to issue #4
    - restore the original viewpoint when ctrl is released or
      on mouseleave map
    - ...
    7ac7ac50
Name
Last commit
Last update
docker Loading commit data...
js Loading commit data...
models/modelname Loading commit data...
scripts Loading commit data...
x3d Loading commit data...
README.md Loading commit data...
bower.json Loading commit data...
call_filter.php Loading commit data...
gulpfile.js Loading commit data...
index.html Loading commit data...
list.php Loading commit data...
map.html Loading commit data...
modify_kml.php Loading commit data...
package.json Loading commit data...
playloop.html Loading commit data...
test.html Loading commit data...
test_nomap.html Loading commit data...
test_nomap_vr.html Loading commit data...