|
POST
|
I've tried changed the lod variable to lower numbers, but with no luck. My data is in State Plane, I am assuming the could be an issue? Here is my rest endpoint for the tiled basemap. Is there a way to define one of the LOD's as a default zoom to location? http://gis.arlingtonva.us/ArcGIS/rest/services/Arlington_Basemap_Plain/MapServer?f=json&pretty=true Hey Bill, I can't figure out why it's not working correctly. I know it has to do with the custom base-map. Maybe you can try posting your app on the ArcGIS Javascript API forum and see if someone has an idea. http://forums.arcgis.com/forums/15-ArcGIS-API-for-JavaScript
... View more
02-15-2012
07:32 AM
|
0
|
0
|
1748
|
|
POST
|
The map gallery template is a great resource. Thanks for this! I'm using it in parallel at maps.choptankriverheritage.org and stories.choptankriverheritage.org. The reason for both is that I have some online map presentations made for ArcGIS Explorer Online. They look very bad when they open up in the ArcGIS.com viewer, and the presentation doesn't work there, anyway. So I created two AGO groups and two separate galleries. Then I set the config option for the story items to open in Explorer. I think that when the config file is set to open the map in Explorer, the URL parameter should be ?present=, not ?open=. Why send the user to Explorer then make them fiddle around trying to start the presentation? I'll look through the /scripts/ files to see if I can find and modify this function. But I'm a Javascript novice and am not sure I'll get it right. Thanks for considering this suggestion. Hi Don, That's a great suggestion. I'll add an option for 'explorer_present'. If you open /scripts/query.arcgis.js and replace this function, it should fix it for you. /*------------------------------------*/
// GET VIEWER URL TO USE
/*------------------------------------*/
function getViewerURL(){
switch(pmgConfig.mapViewer){
case 'arcgis':
return pmgConfig.arcgisPortalURL + 'home/webmap/viewer.html?webmap=';
break;
case 'explorer':
return 'http://explorer.arcgis.com/?open=';
break;
case 'explorer_present':
return 'http://explorer.arcgis.com/?present=';
break;
case 'simple':
return 'map.html?webmap=';
break;
default:
return 'map.html?webmap=';
}
}
... View more
02-15-2012
06:51 AM
|
0
|
0
|
1748
|
|
POST
|
Greetings, fellow Map Gallery Template fans... I would like to suggest making the Footer area optional. At the moment one can only change all aspects of the Footer, except turning the footer off when it isn't required. Maybe a consideration for the next iteration? In any case, I would appreciate some advice on how would I be able to remove it within the current structure of the template. Many thanks in advance. We'll take that into consideration for the next version. You should be able to modify the map.html and index.html files and remove the div with the id of "footer". Then you can change the background color of the body/html in the CSS to a different color if you like. That should be it. Let me know if that works for you.
... View more
02-10-2012
04:27 PM
|
0
|
0
|
2145
|
|
POST
|
Greetings all, I have just become aware of the existence of the 1.4 version of the Public Maps Gallery template. One thing that I have noticed in version 1.3.1 a couple of days ago, and that still has not been pointed out, as far as I know is that the maps don't propagate their watermarks! So if I have a look at a map within ArcGIS Online which contains a basemap such as OSM, I see the following: [ATTACH=CONFIG]11873[/ATTACH] However, in the map gallery for the same map there is no copyright watermark. How can this be resolved? Many thanks in advance. Hey Miguel, Thanks for pointing that out. I'll see how I can best address this issue.
... View more
02-10-2012
04:21 PM
|
0
|
0
|
2145
|
|
POST
|
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 Hi Brian, That's a good suggestion. I may put in an option to easily turn these on and off. You can remove them in the index.html and map.html files. In index.html, remove this code: <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> In map.html, remove this code: <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> That should do it for you. Thanks
... View more
02-09-2012
04:23 PM
|
0
|
0
|
2145
|
|
POST
|
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
... View more
02-02-2012
09:11 AM
|
0
|
0
|
1564
|
|
POST
|
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? Hi Scott, I think you can add an item in ArcGis.com as an external application and then put the link to the PDF if you have it on your own server. I think that's the solution we've used before. I don't think it will let you upload a PDF though.
... View more
02-02-2012
09:07 AM
|
0
|
0
|
1564
|
|
POST
|
Does this template has search functionality available? I noticed that Rockville Map Gallery http://maps.rockvillemd.gov/gallery/map.html?webmap=da37c709d83c4a398993dd5972951f52 has that functionality implemented. Is that a custom implementation or is it a functionality of the template? Thank you. Hi Seychelles, There is a newer version of this template which has those features: http://www.arcgis.com/home/item.html?id=2b158c0d94b64f208f45bcae801c2fa0
... View more
02-01-2012
06:51 AM
|
0
|
0
|
1251
|
|
POST
|
For some reason my site stopped working in Internet Explorer 8... works with firefox and chrome... any ideas why? http://gis.arlingtonva.us/gallery 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
... View more
01-31-2012
08:52 AM
|
0
|
0
|
1357
|
|
POST
|
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. 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: mapLayer.featureCollection.layers[0].layerObject
layer.layerObject
I don't think there's a simple way to remove the frame names. Unfortunately, it requires some javascript coding.
... View more
01-31-2012
08:45 AM
|
0
|
0
|
1357
|
|
POST
|
Hi. I've never turned on or off individual layers in the simple map. However I've developed the Basic Viewer template http://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. That's a good solution.
... View more
01-31-2012
07:41 AM
|
0
|
0
|
1357
|
|
POST
|
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 Sounds like your network may be blocking connection to a javascript file. The only thing I can think of is the jQuery files on the microsoft cdn.
... View more
01-25-2012
07:07 AM
|
0
|
0
|
1956
|
|
POST
|
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? Yeah, you could use your own geolocator you'll need to change some JS to get that to work. It uses the esri geolocator for address input and the auto complete dropdown. Everywhere you see 'aoGeocoder' in the code. For zooming to your location it's just using HTML5 geolocation from the browser. I'm sure you can change that too but it requires javascript changes as well.
... View more
01-24-2012
02:46 PM
|
0
|
0
|
1956
|
|
POST
|
I currently have our application setup to use the 'simple' option. I've also left the embed option enabled. I like the simple option because users can stay within the gallery to browse through multiple maps without leaving the site. However, I would like to be able to give them a way to view the map with the additional options they can gete vie the explorer and arcgis options. Is there an easy way to allow the user viewing the map.html page to then open the selected map via ArcGIS Online or ArcGIS Explorer Online? The link to our site is http://publicmaps.ofallon.org/gallery. Thanks for your help! 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?
... View more
01-24-2012
08:27 AM
|
0
|
0
|
1956
|
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|