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 8494473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:18:30+00:00 2026-06-10T23:18:30+00:00

I am writing a WinForms application with a WebBrowser control. I use Google Earth

  • 0

I am writing a WinForms application with a WebBrowser control. I use Google Earth Plugin in this application, and need to create some placemarks on Google Earth. Depending on the current range (zoom level) some of the placemarks may be very close to each other on screen (when the earth is zoomed out enough). In this case I want to create not all but just some of the placemarks to avoid over-crowding the map on screen with placemarks.

For example, suppose I have 1000 points I want to create placemarks. When I loop through all the points for the placemarks to be created I want to convert the lat/long of each point to the WebBrowser control’s client coordinates so I can check to see if it is very close (on screen) to other placemarks already created. If it is very close to other placemarks I just skip the creation of this one. So if the user zoomed out to a certain degree the actual number of placemarks created may be much smaller than 1000 (for example, 400).

This is where I have difficulty with. I don’t know if there is a way to convert lat/long to client coordinates of the WebBrowser control hosting Google Earth Plugin. I know that for mouse events the client coordinates are there for me to use but there is no mouse event involved in this case.

Anybody has an idea how this can be achieved? Thanks!

  • 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-10T23:18:31+00:00Added an answer on June 10, 2026 at 11:18 pm

    The approach you’re trying to use to fix the problem is incorrect. However there a few options:

    Going with your current approach — you have two options:

    1. You can ask the current view to convert a given lat/lon to screen X/Y.

      https://developers.google.com/earth/documentation/reference/interface_g_e_view#a8c39d0324f2350c54fe2de981f1be418

    2. You can get client mouse coordinates as part of KML mouse events that are fired off the GEWindow class:

      https://developers.google.com/earth/documentation/reference/interface_g_e_window-members

      The KMLMouseEvent that is fired contains client X/Y space:

      https://developers.google.com/earth/documentation/reference/interface_kml_mouse_event

    The correct approach would be to add KML region tags to your placemarks so that placmarks show/hide as the user pans/zooms etc.

    http://www.google.com/earth/outreach/tutorials/region.html

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

Sidebar

Related Questions

I'm writing a winforms application and I need to create a view simliar to
I am writing WCF service hosted in WinForms application. Is there some way to
I'm working on re-writing a WinForms application into Silverlight. One use case in the
I am writing WinForms application, and so far it contains 37 forms. This is
I'm writing a WinForms application. I need to log information into a file. Usually
I'm using this example project's XNA 4.0 form control in an application I'm writing:
I'm writing a WinForms application. I have many labels which represent some status (Enabled/Disabled
I'm writing a WinForms application that sends email messages (like a mail merge). I'd
I'm writing a winforms application in C# (.NET 4.0, using EntityFramework). I wanted to
I am writing a .NET WinForms application that needs to display a list of

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.