Is it possible to add moving icon in google earth tour - kml

I create a path in google earth and create the animation by google tour function.
But I also would like to add the icon (such as arrow or car) moving along the path during the tour.
Is there any simple way to achieve this?

The way to create an icon that moves along a path, and turns to face the direction it's currently moving, is to use a "KML Track". It's easy to create a Track from GPS data (gpx file or otherwise) via the GPS import tool in Google Earth Pro. Then you can add a custom icon if you wish. Once you have that track animating the way you want, you can add it to your Tour.

Related

How to add markers on svg image rendered in xamarin forms

I am new to xamarin and developing a cross-platform app using xamarin forms PCL way.
I have a map image in svg format. I am using SkiaSharp library to load that image on my UWP application through PCL. I have 1 ListView having names of locations. I want to draw annotation or location marker on image, on click of the respective list view item.
For ex: If I will click on XYZ location the marker will be shown on the particular location.
This functionality can be easily achieved by using any map api or xamarin maps, But my problem is I can't use any map api and have to show location on image only.
Please Suggest any solution. Any help would be appreciated.
Thanks in advance.
I do not think this is possible the way you are handling the SVG image.
When a map is presented in a vector or raster file, there is usually a header or companion file containing the latitude and longitude of the top right and bottom left of the image. This is then used along with the image to load the map into a mapping plugin. Simply drawing the map using SkiaSharp will not allow you to determine where a pin should be positioned.
Can you get the map in another format suitable for using with Xamarin Maps?

How to add a custom svg icon to the Material UI font icon?

The icon I am looking for is pretty unique, so I think I'm going to have to create my own. (I'm looking for an icon of a closed door) I found a PNG file similar to what I need, but I need to figure out a way to integrate it with the material ui font icon.
Is there a way to create the js file for it, similar to the ones that exist? Like this one: https://github.com/callemall/material-ui/blob/master/src/svg-icons/action/accessibility.js
I don't know where the "path" comes from, does anyone know?
Thanks in advance!
Those were created using design tools specifically created for this purpose. Creating path based SVG Icons will take a bit more time if you're unexperienced in the field, however it is most likely you can create your own with some free online tools and a bit of patience.
Once you did (the data doesn't necessarily have to be in path format for the SVG, you can create any valid SVG using the available syntax and attributes which you can find info about right here), you can simply replicate one of those JS files and import / export them wherever applicable and use it in a similar fashion as you would any Material UI one.
Such an online tool could be this one for creating what you need:
http://editor.method.ac/

Can Google Earth export kml files usable in the Google Earth Api?

Is it possible for me to go through and edit my virtual copy of the landscape being worked on and export that to kml, usable in the Google Earth API? In other words if I have my models, and color markings laid over the earth, can I share those certain addons through GE API (not allowing users to edit it).
Yes. There are a couple ways to do it.
In the left panel, right-click on the feature or features you want to capture in KML and select Copy. Then open your favorite editor and paste. You'll get the KML. You can save the KML to a file.
Another choice is to right-click on the feature and click "Save Place As...", which will let you save the file as a KML or KMZ.
Google hosts a tutorial.
Sure you can, but you will have to create an GE API instance.
We are coming up with a new product that will handle that.
Send me a note to jdelcid#3delcid.com if you are interested in knowing more about it and perhaps using it for your projects.
Best.
Jorge.

Add Lines To Google Earth Using KML

So, basically, I'm trying to figure out a way that I can draw lines (say, representing the flight path of an RC plane or something) onto Google Earth using KML. Here's the kicker though: I want to give it an initial location, and then check somewhere to see where to continue drawing the line to, draw the line, and leave it be. Once it's done, I could then move it around.
Ex:
Starts at a point A in google Earth
Checks File XYZ.kml on //someserver
XYZ.kml has updated coordinates to draw to
Google Earth pulls in those coordinates and extends the line
Repeat 2->4 until complete
View completed flight path from 3rd person.
Does anyone have any ideas on how to do this? It seems like it can change the location of a model or something in this fashion, but you would have to watch it first person. I haven't been able to figure out how to get this particular functionality to come out right.
You have a few ways of doing this, here is just 2.
Create a LineString via a networkLink and then use the Update feature to update your LineString (ie replace with new version)
Create a LineString and then use .getCoordinates().pushLatLngAlt() to build upon it.
Edit: Sorry, as pointed out in comments, Option 2 is for GE Plug-in, not standalone version
See this SO question for some help on using option #1
See this SO question for more info on option #2

Organizing placemarks in Google Earth Plugin/KML

I am looking for some insight on if / how I can better approach creating my KML in order to make my data more readable when loaded by via a custom app developed around the Google Earth Plugin.
My constraints are:
I have no ability to do anything with the custom app or the plugin,
I can only provide KML files and take advantage of any features
built into the Google Earth Plugin.
The side bar where you select data to display does not list the folders of the selected KML as a sub menu like I have seen in Google Earth.
My data looks like:
Hundreds of Data points sometimes quite close together, which I am
currently displaying as placemarks, with no names set (was too noisy
on the map). I supply additional details on the placemark in the
description bubble / balloon.
Placemarks are frequently related to one another (i.e. there may be
4 placemarks representing a distinct group (e.g. coffee shops)).
What I have found so far:
There is no way for me to group pins as I zoom in and out without access to the JavaScript API / ability to do some amount of front end programming (i.e. there is no way to specify in the KML that pins should be grouped based on zoom level. I have noted the zoom level visibility settings which I do not believe accomplish what I am looking to do).
When clicking on a placemark there is no way to identify the other placemarks which are in the same group (i.e. all coffee shops) such as by changing their style (again note that to work for me this would have to be native functionality whose behaviour can be pre-specified in the KML). I hoped the plugin might provide some default functionality around this with folders, but I haven't been able to find anything.
My questions:
Are my above assumptions correct?
Are there some aspects of the KML spec and how it is displayed by google-earth which might be a good place for me to spend additional time understanding given the nature of my data?
Any suggestions or insight would be very welcome.
Edit: Also considered creating KML Tours to adjust visibility / identify related Placemarks, but could not see how I might start / stop the tour from a given Placemark (e.g. by clicking a link in the description balloon?).
Firstly, a question for you.
Are you wishing to load your 'app' on a mobile device? or are you just trying to do something on a normal computer?
I ask because you mention 'app' - yet in this line
I have no ability to do anything with the custom app or the plugin, I
can only provide KML files and take advantage of any features built
into the Google Earth Plugin.
The Google Earth PLUGIN is not support by mobile devices (yet) so if you can take advantage of it you must be talking about a normal computer scenario. So either a webpage, or a webpage embedded inside another program.
As for
There is no way for me to group pins as I zoom in and out without
access to the JavaScript API / ability to do some amount of front end
programming (i.e. there is no way to specify in the KML that pins
should be grouped based on zoom level. I have noted the zoom level
visibility settings which I do not believe accomplish what I am
looking to do).
Have you looked into using Regions ? With them you can control at what 'zoom' (ie what POV) a placemark becomes visible.
As for
When clicking on a placemark there is no way to identify the other
placemarks which are in the same group (i.e. all coffee shops) such as
by changing their style (again note that to work for me this would
have to be native functionality whose behaviour can be pre-specified
in the KML). I hoped the plugin might provide some default
functionality around this with folders, but I haven't been able to
find anything.
This depends of if you are really using the plug-in (and thus JS) or not. With straight KML I don't think anything is possible. However if you are using the plugin (and some JS) you have number of options depending on how you set up your .kml.
You can 'walk' through your kml file and find all placemarks with the same <style>
You can assign all your placemark id's by - and then using Accessors like this var placemark = ge.getElementById('unique_id');
However it sounds like you are not using JS so I am probably wasting time with this.
Same goes for using tours, IF you are using the plugin and IF you are willing to do some JS coding then YES you can use tours to all kinds of things.
However, if you are talking about a mobile device app, then nothing is possible (except the Regions) and I suggest you edit your question to remove the 'google-earth-plugin' tag.

Resources