Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Discussions > Google Earth Plug-in > How to convert lat/lon to pixels
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
newDeveloper  
View profile  
 More options Jun 27 2012, 10:45 am
From: newDeveloper
Date: Wed, 27 Jun 2012 07:45:00 -0700 (PDT)
Subject: How to convert lat/lon to pixels

Hi.

I'm using the Google earth plugin and I'm listening to the viewchangeend
event.

My intent is that when the user finishes zooming / panning or whatnot, I
should be able

to retrieve the getViewportGlobeBounds and with the bounds returned be able
to solve the following problem:

I have a network link that has a KmlRegion with a LOD specified. How can I
figure out whether the region is within the bounds and that the LOD was
reached?  

Best would be if there was a function such as isRegionActive (or some
similar name), where I can pass the KmlRegion, and the function returns
true/false based on bounds and LOD.

I know that with maps v2 you can use a function fromLatLngToDivPixel to
convert lat/lon to pixels and from there you can figure out the LOD. What
about in Google earth? Is there any function that converts lat/lon to
pixels (and vice versa)? Alternatively, is there any built in function I
can use that will take the bounds and automatically figure out the LOD?

What trick does Google Earth themselves do to determine whether a region is
active in order to display it on earth?

Thank you,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »