We have a map with Ski runs
I want to extract them into a KML file and then import them into Google Earth, so I can use it on my ski holiday.
Is it possible? The importing part is easy, but don't know how to get them.
Related
I am trying to replace the default location points and addresses with my own points and addresses. I have uploaded a geojson with parcel centroid points, address, and assessor parcel number. I would like to display this information when the user clicks on an address. Is this possible?
geojson upload
You can follow this add points to a web map tutorial series to achieve the functionality you are looking for. Since it sounds like you have already uploaded your data to Mapbox as a dataset or tileset, the next steps will be to create a style and then add interactivity by displaying popups containing the desired information when clicked.
If I upload a gpx trace to
convert it into a tileset, I can use it in the Style editor just as expected. But if I upload a second and want to use it as a data source for another or even the same layer, It is greyed out with the following notice:
This source includes vector layer names that are already in your composite source. vector layer names must be unique.
I didn't set any name myself or changed the gpx traces in a weird way. I even renamed the style layer. I looked into the details of the automatically created tileset but I couldn't see a name which was the same on both sources. The only thing that both gpx traces had was the "tracks" part of the source, which contained the actual trace.
But I can't figure out how to change this name.
Is there some way to upload two gpx traces and use them in the same style?
I want to avoid workarounds if possible but if it doesn't work another way, I imagine that there are at least two workarounds:
1. Convert into a geojson file, upload as a dataset and convert into a tileset.
2. Somehow append multiple gpx files into one, but keep the traces separate.
What would be the downsides, apart from having more files to keep up2date? Is (2) even possible?
Update:
In the end I did convert the gpx files into geojson tracks. THis did work exactly as hoped. But I'm still interested if there's a shorter way or if I just did something wrong previously.
Disclaimer: I work at Mapbox.
It isn't possible to upload multiple GPX files directly to the same map style in Mapbox because their layer names are automatically set as track. To fix this, I recommend following these steps:
Convert your data to GeoJSON using a tool like toGeojson
Upload the GeoJSON to Mapbox Studio
Add the data to your map in Studio or GL JS
So to answer your question: you are going about this the correct way. One thing to note: you don't have to upload it as a dataset first. You can upload your GeoJSON as a tileset directly, unless you have some editing you want to do first.
I am programming with OpenSceneGraph (OSG) and I want to put my created OSG-model into Google Earth.
I did research, but I could only find that Sketchup can directly upload its model to Google Earth, but couldn't find anything about uploading an OSG-mode.
Does anybody know how I can achieve this?
You can try exporting your model to COLLADA (DAE) which Google Earth can import.
OSG needs to be built with the COLLADA-DOM library in order to have the COLLADA .DAE loader/saver, and the COLLADA-DOM library is non-trivial to get working.
I am trying to build a custom-designed map, with correct geodata. It could even be an image created in illustrator, but it has to be exported as a set of tiles in correct map format - so that it can be read by tools like Leaflet.js
What confuses me is that none of the available map tools seem to work very well together. I did find Tilemill, which looks very promising (it has a very clean interface and works with CSS), but:
Openstreetmaps does not allow downloading tile images, only XML data in OSM format.
Tilemill does not allow importing Openstreetmaps XML data (why!).
Even if you manage to design a map in Tilemill, you still cannot export tile images, only a proprietary SQL database format? What's the point of that?
If Tilemill is useless, are there other tools that allow opening OSM XML data and applying your own design styles?
There are some sources that talk about building your own tile server:
This source suggests converting OSM to PostGIS using SQL, and then using a custom python script and a tool named Mapnik. Then it says that it's not recommended to use Mapnik for OSM....
This source sounds promising, but then it casually mentions that you have to build and run your own custom Linux distribution...
Is there a simpler way to create map tiles with correct filenames and folders for Leaflet.js?
Tilemill does not allow importing Openstreetmaps XML data (why!).
OpenStreetMap XML is an interchange format: it's a way to transfer things around, not to use them. You can import it into PostGIS and use it in TileMill.
Even if you manage to design a map in Tilemill, you still cannot export tile images, only a proprietary SQL database format? What's the point of that?
If you export millions of tile images, you'll fill up your hard disk and run out of inodes. It's a bad deal. That's why we made MBTiles, which is not proprietary, but very much open source in every definition of the word, and you can export it to disk with mb-util if you so wish.
If Tilemill is useless, are there other tools that allow opening OSM XML data and applying your own design styles?
TileMill isn't useless, but if you want another option, you can use Maperitive, though it is proprietary in every sense of the word.
my client prepared google map with points on. Now he wants that points on map in iPhone app. Is there way to export points from map prepared by him ?
If your client prepared the map in Google Maps, then he can use the "KML" link in his Google Map to download a file with all his data points in it, in KML format.
Did he use javascript to prepare the points and can you get that? If so, use the source.
Did he use maps.google.com to prepare it by dropping points on that? If so, click the URL button and you'll should see the points embedded in the URL, at least that is true for driving directions.