Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

location / map widget. Any interest? #434

Closed
andreasnilssondev opened this issue May 30, 2017 · 10 comments
Closed

location / map widget. Any interest? #434

andreasnilssondev opened this issue May 30, 2017 · 10 comments

Comments

@andreasnilssondev
Copy link

Hi, first of all thanks for a great CMS, I just started using it as an experiment for a blog, and let someone else do the editing. Looks great so far!

I was wondering if there is any interest in a map / location widget? It would probably be mostly useful for blogs, but maybe also company sites with office / store locations.

In Contentful CMS they use a google map where you can add a pin. You can also fill in fields manually (either by address or coordinates).

map-widget

Just curious if this would ever be implemented (maybe with enough interest?) or if I should look at extending one myself. Thanks

@calavera
Copy link
Contributor

That can be a cool widget @nAndreas. We'll take it if you open a pull request with the implementation 😉

@andreasnilssondev
Copy link
Author

Alright sounds good to me, thanks for the reply @calavera

I will try to get the time to get it working well first, and then I can try to implement it nicely in a PR as well. Will just need to familiarize myself with the code base too.

If anyone else feels like doing this let me know though. And any suggestions on how it should work are most welcome

@erquhart
Copy link
Contributor

erquhart commented May 31, 2017

The Boolean widget was recently added, serves as a good example. It includes a default value, which you'll probably also want to do. Also, there's a React component that you may be able to use: https://github.com/tomchentw/react-google-maps.

@erquhart
Copy link
Contributor

erquhart commented Jun 6, 2017

@nAndreas also, if you hit any snags or need assistance, join us on Gitter, happy to help!

@rriemann
Copy link
Contributor

I have some coordinates in my yaml-frontmatter:

geo: 37.1809,-3.6198

it would be nice to have such a component to create this. I render in Jekyll markers with these geo positions on a leaflet map.

@andreasnilssondev
Copy link
Author

Unfortunately I don't think I will get the time for this, it's already been a few months. Sorry about that, but maybe someone else feel like giving it a shot.

@erquhart
Copy link
Contributor

No problem, thanks for the suggestion!

@erick2014
Copy link

I would like to give it a try, but I still not sure what's this all about? including a map? or something?

@rriemann
Copy link
Contributor

The idea is to display a map with a pointer that can be dragged around (or the map is moved under the pointer). Using some configuration options for formatting, the coordonates of the pointer are then turned into a string, e.g. 37.1809,-3.6198.

possible configuration options:

  • separator between both numbers
  • long,lat or lat,long

@erick2014
Copy link

@rriemann I still not sure, about what todo, do you want to add a pointer to the map and move that pointer to other places in the map?

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

No branches or pull requests

5 participants