I just finished configuring our internal map gallery using the 1.4 template and functionality is very good. However, this is template is for our internal use only and our web admins get very concerned about employees inadvertently pushing links outside of our domain. Therefore I need to supress or remove the Tweet, Facebook and Google+ links that magically appeared in the template overnight. Since I'm new at this game I need to ask - is this something I control from within the template? If yes, how? Until I get this problem solved I don't really feel comfortable deploying this gallery within my organization.[ATTACH=CONFIG]11848[/ATTACH]As always, thanks in advance!Brian
<div class="socialButtons"> <div class="item first"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> </div> <div class="item"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#appId=154863967938949&xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="arial"></div> </div> <div class="item"> <!-- Place this tag where you want the +1 button to render --> <div class="g-plusone" data-size="medium" data-annotation="none"></div> <!-- Place this render call where appropriate --> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> </div> <div class="clear"></div> </div>
<div class="item first"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> </div> <div class="item"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#appId=154863967938949&xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="arial"></div> </div> <div class="item"> <!-- Place this tag where you want the +1 button to render --> <div class="g-plusone" data-size="medium" data-annotation="none"></div> <!-- Place this render call where appropriate --> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> </div>
Hi David,Have you turned on the mobileAppLink option in the optional settings config?// USE ARCGIS iOS APP LINKS FOR USERS ON iOS DEVICES. Default: false. pmgConfig.mobileAppLink = true;I've verified that this works for iOS devices but I haven't for Android or Windows OS. I'm not sure if the same support exists. I'll look into it.A little background; The first version of this template we targeted web developers with Javascript/HTML/CSS expertise but we found that a lot of users using it didn't have that experience so we made this version simpler which is why it's more controlled.We have discussed a version of the template that embeds into a users current site design. I'll keep you posted on that.Thanks
// USE ARCGIS iOS APP LINKS FOR USERS ON iOS DEVICES. Default: false. pmgConfig.mobileAppLink = true;
We are unable to open any of the Public Map Galleries that are version 1.4. We've tried to view Esri's demo site, as well as those posted by users on the forum (Arlington, Rockville, etc.). When we try to launch the gallery, we just get the loading circle icon and the page never loads
Could you tell me how you did this or do you have a template I can use? Here is my email Jon.Beets@us.af.mil Thanks...
//CUSTOMWEBMAP webmap = {}; webmap.item = { "title":"put in your title", "snippet": "?", "extent" : [[151.1531, -33.909], [151.2702, -33.8514]] }; dojo.byId("title").innerHTML = pmgConfig.title || webmap.item.title; // SITE TITLE if(pmgConfig.siteTitle){ pmgConfig.pmgSubTitle = pmgConfig.title || webmap.item.title; setPageTitle(); } dojo.byId("subtitle").innerHTML = pmgConfig.subtitle || webmap.item.snippet || ""; var descriptionInfo = pmgConfig.sidebarContent || webmap.item.description || ""; dojo.byId("descriptionContent").innerHTML = '<h2>About this map</h2>' + descriptionInfo + '<div class="clear"></div>'; webmap.itemData = { "operationalLayers": [{ "url": "<address to your ags service>", "visibility": true, "opacity": 1, "title": "whatever name" }], "baseMap": { "baseMapLayers": [{ "opacity": 0.5, "visibility": true, "url": "<address to your ags service>" }], "title": "whatevername" }, "version": "1.1" }; var mapDeferred = esri.arcgis.utils.createMap(webmap, "map", { mapOptions: { slider: false, wrapAround180:true, nav: false }, ignorePopups:false, geometryServiceURL: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" }); // var mapDeferred = esri.arcgis.utils.createMap(itemInfo, "map", { // mapOptions: { // slider: false, // wrapAround180:true, // nav: false // }, // ignorePopups:false, // bingMapsKey: pmgConfig.bingMapsKey, // geometryServiceURL: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" // });
Hi, thanks for the "gallery application", but is there any chance to use this for the "private" maps and groups? Thank you. EDIT : meanwhile I've just modified the source code to bypass the arcgisonline and read the data from my rest endpoints straightaway
Cool. Feel free to modify it however you'd like.You may be able to get it to work with private maps and groups using the identity manager. I know it works for secured services and I think it works for ArcGIS.com private content. We don't have any plans on adding this to this template at this time, that may change, but you're more than welcome to implement it.http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/identitymanager.htm
Hi, thanks for the "gallery application", but is there any chance to use this for the "private" maps and groups?Thank you.EDIT : meanwhile I've just modified the source code to bypass the arcgisonline and read the data from my rest endpoints straightaway
I would like to include static PDF maps in this gallery, but ArcGIS.com does not allow this file type. Is there a way that I could include PDF maps?
Thanks... that did the trick
I think I know what it is. IE is VERY picky about JSON objects and extra commas. Try removing the last comma in this code:// LINK 4 { title: "City of Alexandria GIS", url: 'http://alexandriava.gov/GIS' },Let me know if that works.Thanks
// LINK 4 { title: "City of Alexandria GIS", url: 'http://alexandriava.gov/GIS' },
Hey Marc,I don't think that the date can be formatted. At least not in the code because the info window content comes from Arcgis.com. Unless you overwrite it when the pop up is called which is not a simple task. You may be able to adjust the formatting on Arcgis.com. I'm not sure about that.The legend format is different depending on what kind of layer or service it's for. I've noticed it is rendered differently for featureCollections. You should be able to strip out any information you don't want from it though. The function to edit is in /scripts/map/layout.js on line 302 buildLayersList(). It collects each layer object from:I don't think there's a simple way to remove the frame names. Unfortunately, it requires some javascript coding.
For some reason my site stopped working in Internet Explorer 8... works with firefox and chrome... any ideas why?http://gis.arlingtonva.us/gallery
1) Is there any place in the Gallery application code to format dates in the popup so that the time does display such as 6/30/2010 8:00 PM? I could probably change the date field to a text field in the source, but that's the tail wagging the dog.2) Is there any place in the Gallery application code to adjust the formatting in the Legend? I'd prefer that only the map service Layer names appear and not the Frame names.Thanks.
mapLayer.featureCollection.layers[0].layerObject layer.layerObject
Hi. I've never turned on or off individual layers in the simple map. However I've developed the Basic Viewer templatehttp://apps.arcgis.com/hosted/OnePane/basicviewer/index.html and that worked well for me. I created a link to the Basic View template in the settings.content.js and users can see the simple maps and this link together.
I am using the "simple" map in my gallery. Is there a way to set it up to turn on the individual layers in my rest service? I can do this when I switch to explorer or arcgis.com, but would like this functionality in the simple map. For instance I have a service of bus routes, but would like to give the end user the option to turn on/off different routes that overlap.
For some reason, the marker is gone now and I couldn't get that to work. Any suggestions? Is there a possibility of using my own geocoding services I have published?
We are unable to open any of the Public Map Galleries that are version 1.4. We've tried to view Esri's demo site, as well as those posted by users on the forum (Arlington, Rockville, etc.). When we try to launch the gallery, we just get the loading circle icon and the page never loads:[ATTACH=CONFIG]11420[/ATTACH]I have contacted our network administrator, but IT hasn't resolved it yet for us. Has anyone else had this problem? I think it's probably some security issue on our end. It doesn't matter if we are using Firefox or IE...we still can't open any 1.4 galleries. Thanks,Stephanie
Hi Dan,On the simple map viewer, under the about tab there's a link to get to the Arcgis.com viewer. Is that what you're looking for? Maybe you would like a more prominent button somewhere?
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.