Coder Social home page Coder Social logo

marker / image doesn't work ? about osgearth HOT 7 CLOSED

gwaldron avatar gwaldron commented on August 27, 2024
marker / image doesn't work ?

from osgearth.

Comments (7)

gwaldron avatar gwaldron commented on August 27, 2024

Bug. I am actually working on this one today.

from osgearth.

gwaldron avatar gwaldron commented on August 27, 2024

Should now be fixed. Also you no longer need the model() or image() specifiers.

from osgearth.

remoe avatar remoe commented on August 27, 2024

Hi

I've tried (with trunk) and debugged it and the image is loaded but i can't see it. Do you have a working sample ?

<map type="geocentric" version="2">
    <options>
        <lighting>false</lighting>
        <terrain>
            <min_tile_range_factor>8.0</min_tile_range_factor>
            <loading_policy mode="standard"/>
        </terrain>
    </options>

    <elevation name = "e1" driver = "tms" >
        <url>e1\tms.xml</url>
    </elevation>

    <image name = "i1" driver = "tms">
        <url>i1\tms.xml</url>
    </image>

    <model name="pois" driver="feature_geom">

        <features name="pois" driver="ogr">
            <url>pois.shp</url>
            <build_spatial_index>true</build_spatial_index>
        </features>

        <clustering>true</clustering>

        <layout>
            <crop_features>true</crop_features>
            <level max_range="10000000" min_range="0">
                <selector class="pois"/>
            </level>    
        </layout>

        <!-- Appearance details -->
        <styles>
            <style type="text/css">              
                pois {
                    altitude-clamping: terrain;
                    marker:            "c:/poi.png";
                    marker-placement:  vertex;
                    marker-scale:      1.0;
                    altitude-offset:   100;     
                }     
            </style>
        </styles>
    </model>                
</map>

from osgearth.

gwaldron avatar gwaldron commented on August 27, 2024

Remo,
Grab a new update and try it. I updated some code.

Also-- if you're using an image-based marker (you are), make sure clustering=false.

Glenn

from osgearth.

remoe avatar remoe commented on August 27, 2024

Glenn,

Thanks. It works now ;) But "marker-scale" doesn't work with my sample.

Remo

from osgearth.

gwaldron avatar gwaldron commented on August 27, 2024

Pull and try again - fixed a couple things.

from osgearth.

remoe avatar remoe commented on August 27, 2024

Ok, I've checked it on Windows 7 64Bit / OSG 3.1.0.90 and it works now.

Thanks
Remo

from osgearth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.