{"action":"created","issue":{"url":"https://api.github.com/repos/rsignell-usgs/karen_work/issues/8","repository_url":"https://api.github.com/repos/rsignell-usgs/karen_work","labels_url":"https://api.github.com/repos/rsignell-usgs/karen_work/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/rsignell-usgs/karen_work/issues/8/comments","events_url":"https://api.github.com/repos/rsignell-usgs/karen_work/issues/8/events","html_url":"https://github.com/rsignell-usgs/karen_work/issues/8","id":296472857,"number":8,"title":"Add layer switch (front-end)","user":{"login":"k-rns","id":7288408,"avatar_url":"https://avatars2.githubusercontent.com/u/7288408?v=4","gravatar_id":"","url":"https://api.github.com/users/k-rns","html_url":"https://github.com/k-rns","followers_url":"https://api.github.com/users/k-rns/followers","following_url":"https://api.github.com/users/k-rns/following{/other_user}","gists_url":"https://api.github.com/users/k-rns/gists{/gist_id}","starred_url":"https://api.github.com/users/k-rns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-rns/subscriptions","organizations_url":"https://api.github.com/users/k-rns/orgs","repos_url":"https://api.github.com/users/k-rns/repos","events_url":"https://api.github.com/users/k-rns/events{/privacy}","received_events_url":"https://api.github.com/users/k-rns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-12T18:11:02Z","updated_at":"2018-02-15T09:19:02Z","closed_at":null,"author_association":"COLLABORATOR","body":"Hi @rsignell-usgs, \r\n\r\nI would like to add a layer switch into the Melown browser. I'm trying to put the sampling locations on there, but I don't really see it. So I think with that switch it will already be good for me to see if I do it well or not. I'm trying to follow this tutorial: http://vtsdocs.melown.com/en/latest/tutorials/landuse-frontend.html \r\n\r\nOk, I just did a liiiitle bit more research, there is a step by step approach on the melown website that I didn`t see. But sty tuned for more html questions :), exciting to learn something new (again!)\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/rsignell-usgs/karen_work/issues/comments/365868103","html_url":"https://github.com/rsignell-usgs/karen_work/issues/8#issuecomment-365868103","issue_url":"https://api.github.com/repos/rsignell-usgs/karen_work/issues/8","id":365868103,"user":{"login":"DavidLevinsky","id":17436351,"avatar_url":"https://avatars2.githubusercontent.com/u/17436351?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidLevinsky","html_url":"https://github.com/DavidLevinsky","followers_url":"https://api.github.com/users/DavidLevinsky/followers","following_url":"https://api.github.com/users/DavidLevinsky/following{/other_user}","gists_url":"https://api.github.com/users/DavidLevinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidLevinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidLevinsky/subscriptions","organizations_url":"https://api.github.com/users/DavidLevinsky/orgs","repos_url":"https://api.github.com/users/DavidLevinsky/repos","events_url":"https://api.github.com/users/DavidLevinsky/events{/privacy}","received_events_url":"https://api.github.com/users/DavidLevinsky/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T09:19:02Z","updated_at":"2018-02-15T09:19:02Z","author_association":"NONE","body":"Hi Keren,\r\n\r\nI will be glad to answer your questions.  \r\n\r\n- yes, in case you want to use [vts-browser-js](https://github.com/Melown/vts-browser-js) (JavaScript Melown API) it is compulsory to load vts-browser.min.js (js library containing vts-browser) and vts-browser.min.css (css stylesheet needed to correctly display vts-browser). \r\n\r\n- your URL is almost correct. Just add mapConfig.json at the end of your url: http://jetstream.signell.us:8070/mapproxy/melown2015/surface/sandwich/sandwich_dem_resampling/mapConfig.json\r\n\r\n- I recommend you to look at these [examples](https://github.com/Melown/vts-browser-js/wiki/Examples) which also contain used code. Most useful will be this [example](https://jsfiddle.net/wk4xa9zx/) , (full code is [here](https://github.com/Melown/vts-browser-js/tree/master/demos/geodata-basic)) which does exactly what you want. You can modify look of the panel with the switch in the css section (.switch-panel-div). The map \"view\" and names of the free layers, surfaces, ... can be found by investigating mapConfig.json file."}}
{"actor":{"display_login":"DavidLevinsky"}}