Is there any way to have checkboxes to toggle layers on and off once the maps are on the maps gallery template? Right now the legend just has static images, it would great for the user to toggle layers on and off. That way, I don't need to create a new map for every polygon layer i make (unemployment, workforce, median income, etc.)Thanks!
I figured out how to get those legend items showing in the right column. Navigate to global.css and remove the following code. It might be easiest to search for it.#legendMenu .esriLegendServiceLabel { display:none; }Let me know if that works for you. I'll have it in the next update.Thanks
#legendMenu .esriLegendServiceLabel { display:none; }
Now that the android app is out can someone post the link to replace <p>Android available soon.</p> to a link that someone can download the app. Thanks.
Greetings. I am using a very stripped down of this template here:http://www.peoriacounty.org/GIS/You can see that there is a slight formatting error in-between my "IL Legislature" and "Peoria Tweets" applications. I have looked all over this forum and haven't been able to figure out why those thumbnails are different. I am using Grid_8 to get the 2x4 layout but i just can't figure out this misalignment. Any assistance is appreciated.
Can I use this template yet?
Is there away to have my map services (or web maps or web mapping applications) listed under the "Layers" bar? It seems only that only type=Layer (my content) is visible here. Per arcgis.com help, I should be able to save a rest service as a "Layer".
Yes, if you look in "/scripts/home/local.js" you will see where it says "type: 'layer',". If you remove the word layer from that, it should show everything in the group.
Great, thanks. Do you know all the options?searchType: 'layer'searchType: 'application'searchType : 'web map'
Yeah, there are a lot so i've attached them in a PDF. It's the first column on the left I believe.
fantastic...last question (for now).The featuredlayers currently open via arcgis.com while featuredmaps open as embedded in my root URL. I want to highlight all my flex apps in the featured maps section and have the featured layers list open my maps the same way if they were in my featuredmaps section.my dev site
// BUILD LIST ITEM html += '<li><a title="' + data.results.snippet + '" href="'+obj.arcgispath+'home/item.html?id=' + data.results.id + '">' + data.results.title + '</span></a></li>';
if(data.results.url){ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+ data.results.url + '">' + data.results.title + '</span></a></li>'; } else{ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+obj.arcgispath+'home/item.html?id=' + data.results.id + '">' + data.results.title + '</span></a></li>'; }
I think I understand.If you replace lines 142 and 143 on "/scripts/home/local.js" which has this code// BUILD LIST ITEM html += '<li><a title="' + data.results.snippet + '" href="'+obj.arcgispath+'home/item.html?id=' + data.results.id + '">' + data.results.title + '</span></a></li>';with this:if(data.results.url){ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+ data.results.url + '">' + data.results.title + '</span></a></li>'; } else{ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+obj.arcgispath+'home/item.html?id=' + data.results.id + '">' + data.results.title + '</span></a></li>'; }that will open the layers list with the application URL in a new window like you're doing with the featured maps. Some of them are just items and don't have a URL I see so they will just open in ArcGIS.com. You may be able to change that.
Is there a way to sort the list of maps?Is there a way to filter the list?Thanks,cucinellij
searchType : 'Web Map', sortField : 'uploaded', sortOrder : 'desc',
sortField: The allowed field names are title, uploaded, type, owner, avgRating, numRatings, numComments and numViews.sortOrder: Values: asc | desc
Any other thoughts on this?
Hey xander,What are you trying to do exactly?
You had it right. I want the featurelayers to open with the application URL and not arcgis. The code provided doesn't seem to fix it. If you look and Cleveland Wards as a specific example it's under both fetaurelayers and featuremaps. If opened under featuremaps it opens as http://www.clevelandgis.com/gallery/map.html?webmap=xyzIf opened under featurelayer it opens as http://www.arcgis.com/home/item.html?id=xyzThanks..
if(data.results.url){ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+ data.results.url + '">' + data.results.title + '</span></a></li>'; } else{ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+obj.arcgispath+'home/item.html?id=' + data.results.id + '">' + data.results.title + '</span></a></li>'; } }
if(data.results.url){ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+ data.results.url + '">' + data.results.title + '</span></a></li>'; } else{ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="map.html?webmap=' + data.results.id + '">' + data.results.title + '</span></a></li>'; } }
Oh ok. try replacing this:if(data.results.url){ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+ data.results.url + '">' + data.results.title + '</span></a></li>'; } else{ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+obj.arcgispath+'home/item.html?id=' + data.results.id + '">' + data.results.title + '</span></a></li>'; } }with this:if(data.results.url){ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+ data.results.url + '">' + data.results.title + '</span></a></li>'; } else{ // BUILD LIST ITEM html += '<li><a target="_blank" title="' + data.results.snippet + '" href="map.html?webmap=' + data.results.id + '">' + data.results.title + '</span></a></li>'; } }I'm just changing the link to go to "map.html?webmap="
If you change line 26 to "perRow : 2," on "/scripts/home/local.js" it should fix that display error. It's currently added a class "endRow" to every third item which is removing the padding. If you change it to 2, it should only add it to the 2nd item on each column. Or you can remove the endRow class from global.css. That's another option.Hope that helps.
Just when I thought my questions were answered...For featurelayer: searchType : 'Web Map' returns both Web Map and Web Mapping Applications on the featurelayer list. I can't seem to isolate just the web maps on the feturedlayers list. However, if I try searchType : 'Web Mapping Application' it does isolate my flex apps on both the featuremaps and featurelayer. web map are not shown at all.
if(data.results.url){ // BUILD LIST ITEM // html += '<li><a target="_blank" title="' + data.results.snippet + '" href="'+ data.results.url + '">' + data.results.title + '</span></a></li>'; }
YES it does, thanks very much. i know this is an 'unsupported' template. but you go to great lengths to help make it work for everyone, thanks for your assistance.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.