This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[Maptiler] How to access data stored in map markers

0

I'm trying to reproduce my Google Fusion tables maps before Fusion Tables is removed from Google Maps in August. I am not an experienced GIS person and getting into the world of OSM has been very difficult for me as a Google Maps user.

My maps are simply markers on a map, positioned by lat and long, and with several points of data associated with each marker. I have tens of thousands of points

So far I have been able to render my data into tile sets using Maptiler desktop, then style and host the maps on Maptiler Cloud. The last step is I need to figure out how to access the data stored with each marker to display in a popup info window for each marker. In the Maptiler Cloud interface I can see the values of "name" and "description" for each point, which seem to be the default values used by the platform. Based on that, I am not sure if my other data for each point has been stored. As an example the data I need to include in each point and display in the map popup is:

Name ID State County

My questions are:

  1. I'm assuming the data is accessed by JS like Leaflet and then displayed in the marker popup. How does the script access these data points? Is there some kind of map inspector I can use to see what data resides in each marker?

  2. How is the data in each marker stored?

  3. My data that was rendered as tiles was KML. Is there a certain KML format I need to use to ensure that all data points are being included in the tile sets, and can be accessed by JS in the map?

I'm just looking for some high-level info here that I can use to guide the development efforts related to this project. Any hel is greatly appreciated.

asked 02 May '19, 20:52

Earthventures's gravatar image

Earthventures
11112
accept rate: 0%

edited 02 May '19, 22:28

Richard's gravatar image

Richard ♦
30.9k44279412

Source code available on GitHub .