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

  • Home
  • SEARCH
  • 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 7490773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:45:59+00:00 2026-05-29T15:45:59+00:00

My company develops a web application (in Java using GWT) that employs the Google

  • 0

My company develops a web application (in Java using GWT) that employs the Google Earth plugin to display specific sites and other data on the globe. We’re currently managing balloons on a per-use basis, meaning each function that needs to display a balloon is managing the destruction(if needed) and creation of the balloon itself. This leads to issues where the GE plugin will sometimes crash if we try to open a balloon while another is still open. Though we’ve worked this out in almost every case, I’m thinking it would be smart(er) to manage the balloons centrally, instead of in each place that uses them.

Hurdles:

  • many sites to show, the locations of which must be very precise;

  • multiple layers are in use, each of which may show balloons;

Has anyone created a “BalloonManager”-type thing that handles this sort of thing? How might you do this?

  • 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-05-29T15:46:00+00:00Added an answer on May 29, 2026 at 3:46 pm

    It sounds like you should be using encapsulation, look at moving the balloon creation into a single separate method.

    Also, with regard to “issues where the GE plugin will sometimes crash if we try to open a balloon while another is still open” – make sure you simply call ge.setBalloon(null) before opening any balloons, or better still, simply reuse any current balloon rather than creating a new one if it is available.

    The following code should help to explain – it is using the api methods you would need so it should be of some use.

    public void function OpenFeatureBalloon(GEPlugin plugin, IKMLFeature feature) 
    {
      // Get any open balloon
      IGEFeatureBalloon balloon = plugin.getBalloon();
    
      if (balloon == null) 
      {
         // not there, so create one
         balloon = plugin.createHtmlStringBalloon("");
      }
    
      // set the balloon to the features geographic location
      balloon.setFeature(feature);
    
      // open the balloon in the plugin
      ge.setBalloon(balloon);
    }
    

    If you did not want to pass a feature to the method, it would be fairly trivial to ammed the method to accept something like a latitude and longitude as doubles for example.

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

Sidebar

Related Questions

Our company develops a web application that other companies can license. Typically, our application
My company develops and sells a SaaS application that has hundreds of customers. Some
The company that I work for develops a C++ application to manage service businesses
I work for a small company (read: three employees) that develops web applications, and
My company develop web apps using combination of mod_perl, axkit and apache. We have
I am working in a company that develops computing kernels. Their design is simple
I've been tasked to develop a small web application for my company, and my
We are planning to develop a web based application using Silverlight 2.0. The application
For a little background, I work for a firm that develops web-based enterprise social
I develop a web application that needs to be load balanced across 4 webservers.

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.