Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8343069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:57:01+00:00 2026-06-09T05:57:01+00:00

I am using the google earth plugin to manipulate a google earth window within

  • 0

I am using the google earth plugin to manipulate a google earth window within my browser, however I can’t seem to change altitude of KmlModels.

The offending script looks like this:
(mostly copied from an example)

    var placemark = ge.createPlacemark('');
    placemark.setName('model');

    // Placemark/Model (geometry)
    var model = ge.createModel('');
    placemark.setGeometry(model);

    // Placemark/Model/Link
    var link = ge.createLink('');

    link.setHref('http://earth-api-samples.googlecode.com/svn/trunk/examples/' +
        'static/splotchy_box.dae');
    model.setLink(link);

    // get center look at location
    var lookAt = ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND);

    // Placemark/Model/Location
    var loc = ge.createLocation('');
    loc.setLatitude(37.929828);
    loc.setLongitude(-100.02596);

    loc.setAltitude(6562); //Has no effect
    model.setLocation(loc);

    // add the model placemark to Earth
    ge.getFeatures().appendChild(placemark);
    // zoom into the model
    lookAt.setRange(300);
    lookAt.setTilt(80);
    lookAt.setLatitude(37.929828);
    lookAt.setLongitude(-100.02596);
    ge.getView().setAbstractView(lookAt);

Does anyone know why? My model is always clamped to the ground no matter what. This is very frustrating.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:57:02+00:00Added an answer on June 9, 2026 at 5:57 am

    add code:

    model.setAltitudeMode (ge.ALTITUDE_RELATIVE_TO_GROUND);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I determine whether the Google Earth Plugin is installed in the browser
Using the Google Earth plugin AI, I want to play a tour authored in
I'm creating an application using the Google Earth plugin ( http://www.google.com/intl/en/earth/explore/products/plugin.html ). Typically, to
I'm using the Google Earth Web-plugin API and I've got a 3d model of
Is it possible to develop an application in Qt, using Google Earth? For example,
There is some strange behaviour in parsing KML produced by Google Earth using a
Using google, yahoo and AOL smtp and PHPMailer how many mails can be sent
I am trying to programatically generate movie/video file using Google Earth COM APIs (along
Im using the google earth v1 javascript API to update hundreds of objects moving
May be in a UIWebView, can you show the interactive Globe of Google Earth

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.