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

Add fotos #123

Open
rhalbheer opened this issue Jul 25, 2020 · 4 comments
Open

Add fotos #123

rhalbheer opened this issue Jul 25, 2020 · 4 comments

Comments

@rhalbheer
Copy link

Is there a way to add photos/pictures to a layer?

@cdauth
Copy link
Contributor

cdauth commented Jul 25, 2020

How exactly would you want that to behave?

Would you want to use a full-size photo as a layer, so for example upload a photo of a map and drag it around and add markers and lines on top of it?

Or do you want to show small previews of photos on the map, and when you click on them it opens the full-size photo?

Or do you want to add photos to the description of a marker/line?

Currently only the last one is possible. You have to upload the photos to some publicly accessible URL and then embed them into the description using the Markdown syntax.

@rhalbheer
Copy link
Author

What I would like to do is create a map and then add something like a marker and when you click on it you get the photo.
So, basically your last option works. I have found that some markdown implementations use parameters to resize the picture. Can we do that as well? like "| width=100%"

@cdauth
Copy link
Contributor

cdauth commented Jul 25, 2020

I'm not sure, you may try. FacilMap uses marked for Markdown. I cannot find any precise documentation what exactly it supports, but this indicates that it supports the GitHub syntax to some extent, but I actually cannot find any specification for the width there.

If it doesn't work, I could at least add a max-width: 100% to all images (if it's not already there).

@rhalbheer
Copy link
Author

I was trying different options I found like "=100x200" or "| width=100" but does not seem to work.
Currently it seems that it takes the original picture size. If we could align this to 100% of the pop-up window, this would be great

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

2 participants