google-earth

Rails: submitting a form without reloading the page

孤人 提交于 2020-01-01 07:23:07
问题 My app (https://showthatview.herokuapp.com/) has two parts: A Google Earth pane, where a view is shown A form, where the user sets the address / height where he wants the camera to be set When the user submits the form, I want the RoR back end to store the parameters set by the user, and the JS front end to update the view. I got the two separate parts working. When the user submits the Rail forms, it reloads the page and "resets" the camera Ideally I want the form to submit the data to the

Issue with placemark 'auto' shading in Google Earth

我是研究僧i 提交于 2019-12-25 06:48:12
问题 I have a KML file with a list of placemarks that have custom icons, colors, and sizes. When I display the file in the Google Earth browser plugin, I see that icons that are situated below other icons are shaded. This makes the color of the icon different from what I have in the <color> tag. How do I disable the shading so that I always see the true color of the icon? 回答1: This is possible in the current version of the Api. You can control the icons color, animation, etc - but the clustering

Open file link with application on user click [duplicate]

守給你的承諾、 提交于 2019-12-25 03:08:49
问题 This question already has an answer here : Open Google Earth and load specific KML file when user clicks link on web page (1 answer) Closed 6 years ago . In my website i have a link to kml file . When a user clicks on this link ,I want to open this kml file with google earth application. In android we can do it by using intent and providing content type. How to do the same is desktop ? NO But it will not solve the problem. Is there way to ask for user consent if yes open using script? Can i

appendChild kmz works only in second time when I run a tour (tour is into the same kmz)

家住魔仙堡 提交于 2019-12-25 02:15:07
问题 I have a KMZ file for GE plugin. This file have lots of PNG into, and several kml (poligons, lines, placemarks, etc). The function to run this tour is: function loadKmztour(href){ google.earth.fetchKml(ge, kmlURL, function(kmlObject) { if (kmlObject){ ge.getFeatures().appendChild(kmlObject); walkKmlDom(kmlObject, function(context) { if (this.getType() == 'KmlTour') { ge.getTourPlayer().setTour(this); ge.getTourPlayer().play(); } }); }); } It runs well, but only the second time when I run the

KML file format or minimum requirements

北城余情 提交于 2019-12-24 23:19:12
问题 Having minimal experience with XML, and none whatsoever with KML, I try to find something along the lines of what a program expects when reading a KML file. I'm writing some software to generate a KML file, but when I try to open said file in Google Earth, I get this error: Open of file "C:/blahblah/myFile.kml" failed: Parse error at line 21, column 0: junk after document element I have reduced myFile down to the following, with the same error. <? xml version="1.0" encoding="utf-8"?>

Javascript XMLSerializer case sensitive

别来无恙 提交于 2019-12-24 23:04:52
问题 I'm generating a KML document in Javascript and i'm trying to use XMLSerializer to generate the XML file but it's generating all lower case tags even though i create the tags in capital in the DOM. Is it the DOM that mangles the capitalization or the XMLSerializer? Is there any way to get around it or am I missing something? I've tried this in both Chrome and Firefox. The KML document is to be imported into Google Earth and it seems it doesn't accept lower case tags. 回答1: Based on testing in

Direction based off of 2 Lat,Long points

不问归期 提交于 2019-12-24 07:07:00
问题 I am looking for a function that will allow me to send 2 Lat, Longs. 1 Lat, long is my base and the second is what I want to determine if it is N,S,E, or West. Or would I have to go NW,N,NE,EN,E,ES,SE,S,SW,WS,W,WN? Either way does anyone have something like this in C#? 回答1: First you can calculate the Great Circle Bearing θ = atan2( sin(Δλ).cos(φ2), cos(φ1).sin(φ2) − sin(φ1).cos(φ2).cos(Δλ) ) JavaScript (easily convertable to C#): var y = Math.sin(dLon) * Math.cos(lat2); var x = Math.cos(lat1

How to retrieve 3D models from Google Earth?

ぃ、小莉子 提交于 2019-12-24 01:27:51
问题 I want to retrieve all 3D models on some area from Google Earth. How can this be achieved? 回答1: There is currently no way to download all the models from within Google Earth. Also, even is there was - extracting data is against the TOS. This is due to the fact that many of the models come from government or private sources so there are issues with licencing the data as a whole. It is worth noting however that a lot of the models in Google Earth are located on the Sketch up 3dwarehouse so

Inconsistency while invoking JavaScript Method in Internet Explorer ActiveX control

房东的猫 提交于 2019-12-24 00:56:08
问题 I am working on interfacing MATLAB with Google Earth Plug-in. The interface uses Internet Explorer ActiveX control as host for the Google Earth Plug-in as the plug-in uses JavaScript. In a simple demo below (testJS.html), I successfully imitate a straight movement in Google Earth using pre-defined coordinates. (Works only on Firefox and IE, although on IE the speed is a little bit fast). Using the same coordinates, I invoked the JavaScript methods from MATLAB script. Instead of straight

is it possible to display 3D data in Google Maps or Google Earth?

旧城冷巷雨未停 提交于 2019-12-23 13:13:17
问题 I'm trying to find an effective way to visualise feedback from some real-world sensors measuring wind speeds at various heights. Does anyone know if it's feasible to display 3D data in google maps? I was imagining 3D arrows indicating direction and wind speed. If it's possible to load a model and position it to a particular GPS position / elevation and then change its orientation to point to a particular azimuth / elevation what could work. Another alternative I was considering would be to