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 hyperlink to website tag #7

Open
pyrog opened this issue Dec 7, 2014 · 2 comments
Open

Add hyperlink to website tag #7

pyrog opened this issue Dec 7, 2014 · 2 comments

Comments

@pyrog
Copy link

pyrog commented Dec 7, 2014

overpass webcam
osmcamera
If possible, show directly the images in the box (for URL of type image/video)
Example

@khris78
Copy link
Owner

khris78 commented Dec 8, 2014

Hello,
Thank you for your comment.

At this moment, the code tests the tag value and displays an image :

  • if it starts with 'http' => the tag value is rendered as a link
  • and it ends with png, gif or jpg. => the tag value is rendered as an image

I can add the condition "tag value starts with 'www.'" to render a link.

The problem with your request is how to detect whether the link is an image or not, as the box content is initialized once when the map is displayed.
I will try to access to the link target when the box is displayed, and check the mime type on the fly to display a link or an image, but I'm not sure I will manage to do it.

@pyrog
Copy link
Author

pyrog commented Dec 8, 2014

I made searches with Overpass to find objects with man_made=surveillance and a Tag with an URL value :

Nodes Way Relations Tag
764 41 0 website
374 1 0 url
37 0 0 url:webcam
11 0 0 webcam
3 0 0 website:webcam
1 0 0 WebCam␣LIVE

See also Talk:Tag:man_made=surveillance

There a "few" objects. I suggest to build a tool that query all these objects and test the mime type of the "images", if the tag are appropriates… so we could manually or automatically fix them.

It could be a local tool or an extension of osmose.openstreetmap.fr

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

No branches or pull requests

2 participants