Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Show exact coordinates of records with a marker on map #175

Open
cschwantes opened this issue Dec 14, 2016 · 2 comments
Open

Show exact coordinates of records with a marker on map #175

cschwantes opened this issue Dec 14, 2016 · 2 comments

Comments

@cschwantes
Copy link

Is it possible to show the position of single records on the map? I went through all demos, but haven't found such an example. Leaflet should be capable of this.

@cschwantes cschwantes changed the title Show exact coordinates with a marker in map Show exact coordinates of records with a marker on map Dec 14, 2016
@adilyalcin
Copy link
Owner

Hi @cschwantes,

You can show an area / polygon for each record with current Keshif version. I have a public example using counties as records. The record display can show a map which shows each county.

www.keshif.me/demo/surplus_gear

Currently, you need to load the GeoJSON yourself, and describe how each record (say, county) should be represented (currently, Keshif only accepts geojson path objects).

You can find the source code for this example here:
https://github.com/adilyalcin/Keshif/blob/master/demo/surplus_gear.html

The code of interest is in the recordDisplay specification :: geo: 'geo',

And, on loading the data, JSON file is parsed and then a geo property is added to each county.
The code is further up in the code for that, and the statement is: record.data.geo = feature;

This is not a stable API. It is flexible, so will require some coding.

If you have more questions or new feature requests, feel free to send an update on this thread.

Adil

@cschwantes
Copy link
Author

Hello @adilyalcin

Instead of representing areas such as counties or countries, I would like to represent individual sets of coordinates with a marker. Each record would have it's exact coordinates (such as it's exact address), which should be shown on a map.

You can see an example of what I'm referring to as marker here:
Image of Marker Example

Chris

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants