landsurveyorsunited / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

It would be nice if we could draw dashed (or dotted, etc.) lines on Google Earth... #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if we could draw dashed (or dotted, etc.) lines on Google 
Earth.

dashed and dotted line styles are essential to making our geologic maps into 
kml overlays!

Requestor: OwyheeRover(bclark@earthpoint.us)

Supporters: Buck

Lance, Kent, The Entire Utah Geological Survey

Original issue reported on code.google.com by api.roman.public@gmail.com on 14 Aug 2008 at 2:15

GoogleCodeExporter commented 9 years ago
I agree. I display the location of electricity cables in GE, and it would help 
distinguish between overhead lines and underground cables.

Original comment by waynep62...@gmail.com on 22 Oct 2008 at 10:54

GoogleCodeExporter commented 9 years ago

Original comment by api.roman.public@gmail.com on 20 Nov 2008 at 1:39

GoogleCodeExporter commented 9 years ago
This will make huge difference and will add a lot value to Ge drawing 
capabilities.
So we should have dotted, dashed and dot-dash style for linestring.

Original comment by email.an...@gmail.com on 20 Nov 2008 at 11:37

GoogleCodeExporter commented 9 years ago
Hey all, to vote for the feature please 'Star' it by clicking the empty star at 
the
top left of the page. Thanks!

Original comment by api.roman.public@gmail.com on 20 Nov 2008 at 11:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This feature would be very, very useful for our Great Wall of China map to 
differentiate dynasties and other wall characteristics.

Original comment by greatwal...@gmail.com on 6 Jan 2010 at 10:01

GoogleCodeExporter commented 9 years ago
I need this!!!

Original comment by fred.mo...@gmail.com on 30 Jan 2010 at 1:26

GoogleCodeExporter commented 9 years ago
A tag in the LineStyle such as <stroke> </stroke> with options solid, dash, dot 
or
dash-dot would be very helpful.  

Original comment by AlecDh...@gmail.com on 8 Feb 2010 at 2:32

GoogleCodeExporter commented 9 years ago
Line dash please!

Original comment by iambrian...@gmail.com on 11 Jun 2010 at 7:02

GoogleCodeExporter commented 9 years ago
Hey guys, this is definitely a long-awaited feature for Google Earth to which I 
doubt will ever come.  However if any of you are developers, I can tell you 
what I did for an application on a project of mine.

This may be overkill but it works and can open up possibilities for other 
features.

- Create an application via .NET, Java, or Javascript that:
* Leverages the Google Earth Plugin DLL.
* Allows the user to click points on the earth and capture screen coordinates.
* Loop through the array of screen coordinates and perform linear interpolation 
on i,i+1
  (total loops is determined by the distance/magnitude of i to i+1)
* Obtain the newly interpolated points and convert them to Lat/Lon coordinates.
* Loop through every other point (if i MOD 2 == 0) to display as a LineString.

Like I said, might be a bit overkill but it works and I've done the same idea 
with ellipses, lines with arrowheads, dashed lines, filled polygons, etc. on 
Google Earth.

Original comment by zimmy.hw...@gmail.com on 12 Jun 2010 at 12:12

GoogleCodeExporter commented 9 years ago

Original comment by jli...@google.com on 31 Aug 2010 at 10:03

GoogleCodeExporter commented 9 years ago
I agree with zimmy.hwang's method but have a different approach.

1. Currently I have drawn all the dashed lines as solid lines. 
I have placemarks at the beginning and end of each line.
This provides 3 pieces of information:
  - Co-ordinates for start point
  - Co-ordinates for end point
  - The bearing of the line

We also know that dashed lines have a fixed length.

2. I can now draw the first dash (-) because I have a length, bearing and start 
point. Opacity = 100% 

3. The next step would be to draw a dash (-) with opacity of 0% (This will draw 
the blank area between dashes). The start point of this line would be the end 
point of the first dash. 

4. We can now continue this process until we reach or pass the end point 
specified. At the end point we have to ensure that the line ends at that point 
and that the last dash does not pass the specified point. This is a mere check 
and replace end-point co-ordinates that should be run after the end point 
co-ordinates are calculated for each dash.

And that's the process. A similar type of code can be written for the different 
line types. (long dash short dash, dash dot, etc.)I have not programmed this as 
I have not had the time to get to it. 

Zimmy, could you please supply me with the program that you have used to draw 
line types. You seem to have progressed further by including arroweads (which I 
will need in the future.)

Thanks 
Anveer

Original comment by Anvee...@gmail.com on 17 Dec 2010 at 8:20

GoogleCodeExporter commented 9 years ago
Having dashed, dotted, dash-dot, etc. line styles would be great. I saw Google 
Maps added this ability recently by toggling the opacity.

Original comment by waynebou...@gmail.com on 20 Dec 2013 at 7:48

GoogleCodeExporter commented 9 years ago
I need dash line for the map~~

Original comment by zhangyuz...@gmail.com on 29 Dec 2014 at 10:18