|
POST
|
So I`ve been spending time this afternoon setting up and testing the proxy on my localhost and it is now working. I found the following articles helpful: http://blogs.esri.com/esri/supportcenter/2015/04/07/setting-up-a-proxy/ https://developers.arcgis.com/authentication/accessing-arcgis-online-services/ https://developers.arcgis.com/javascript/jshelp/ags_secureservices.html Now onto figuring out this token stuff. Does it make sense that currently when the application loads it prompts me for a username/password which I enter (and it seems to like) and it continues to load the application. But then it breaks when I try to do something after it's loaded it doesn't work as it no longer knows who I am??
... View more
05-08-2015
01:41 PM
|
2
|
7
|
2623
|
|
POST
|
Hi Robert, I have not set this up. I will search out the help file about setting up proxy and see where I can get to. Thank you
... View more
05-08-2015
11:50 AM
|
0
|
0
|
2623
|
|
POST
|
Hello everyone, I am getting the following error message in the Chrome console. It happens after I click the pin to try to add a point to the map. I know that some things have changed in our environment here which I think is not allowing me to edit and I`m going to ask about that separately. But I jus thought that I would also post up the error message here along with the html/css file being used to see if anyone has some insight that they could share. Thanks everyone!
... View more
05-08-2015
10:44 AM
|
1
|
10
|
6603
|
|
POST
|
Hi Jai, thanks for taking the time to reply. So if I`m correct what you`ve outlined above would allow the URL for the selected polygon in the story map to be accessed via the popup? So you would need to click the polygon to display the popup, then click the URL link in the polygon. If this is the case, then is it not possible to modify the code in the template to have the URL open just based on the first polygon click? Thanks again for your time, Chris
... View more
05-08-2015
08:19 AM
|
0
|
2
|
5157
|
|
POST
|
Tried to insert the html from index.html above, but didn't seem to work. Will try again: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title></title> <meta http-equiv="X-UA-Compatible" content="IE=9, IE=10"> <link rel="stylesheet" type="text/css" href="https://community.esri.com//js.arcgis.com/3.13/esri/css/esri.css" /> <link rel="stylesheet" type="text/css" href="css/layout.css"> <script type="text/javascript"> var path_location = location.pathname.replace(/\/[^/]+$/, ''); var dojoConfig = { parseOnLoad: true, packages:[ { name:"esriTemplate", location: path_location }, { name:"utilities", location: path_location + "/javascript" }, { name: "templateConfig", location: path_location } ] }; </script> <script type="text/javascript" src="//js.arcgis.com/3.13/"></script> <script type="text/javascript" src="javascript/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="javascript/layout.js"></script> <script type="text/javascript"> function init(){ dojo.require("utilities.app"); dojo.require("templateConfig.commonConfig"); var defaults = { //The ID for the map from ArcGIS.com //webmap for coc login: //webmap : "cc6a46cf138d4173bac845d9534320e9", //webmap for trplcwh login: webmap : "b6a070e9b35d479597dbbd130fade937", //The id for the web mapping applciation item that contains configuration info - in most //cases this will be null. appid:"", //Enter a title, if no title is specified, the webmap's title is used. title : "Ward Maps", //Enter a subtitle, if not specified the ArcGIS.com web map's summary is used subtitle : "This is a single story map. The goal is to link each polygon click to open the story map for the ward that was clicked.", //Display legend legend : "true", //specify a proxy url if needed proxyurl:"", //Modify this to point to your sharing service URL if you are using the portal sharingurl :"http://thecityofcalgary.maps.arcgis.com", //add default template options. This includes the bing key, sharing url, proxy url, //and any service urls (geometry, geocode, print) //that may be needed by the template. bingmapskey: commonConfig.bingMapsKey, helperServices:commonConfig.helperServices }; var app = new utilities.App(defaults); app.init().then(function(options){ initMap(options); }); } //show map on load dojo.addOnLoad(init); </script> </head> <body class="tundra"> <div id="mainWindow" dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style="width:100%; height:100%;"> <!-- Header Section--> <div id="header" dojotype="dijit.layout.ContentPane" region="top"> <div id="headerText"> <div id="title"></div> <div id="subtitle"></div> </div> <div id="logoArea"> </div> <div id="header_flourish"></div> </div> <!-- Map Section --> <div id="map" dojotype="dijit.layout.ContentPane" region="center" dir="ltr"> <div id="legendCon" dir="ltr"> <div id="legendToggle"><p id="legTogText"></p></div> <div id="legendDiv"></div> </div> <img id="swipeImg" src="images/swipeStart.png" alt=""> </div> </div> <!--Loading Panel--> <div id="loadingCon"> <div id="loadingDialog"> <div id="loadingHeader"></div> <div id="loading"></div> <img id="loadingImg" alt="" src="images/progressBar.gif"> </div> </div> </body> </html>
... View more
05-07-2015
01:00 PM
|
0
|
4
|
5157
|
|
POST
|
I'm having some trouble trying to figure out where to insert your code sample into the index.html file that is with the template. Also what needs to be commented out from the original index.html file. Here is the index.html file that came with the template, any help appreciated. Thanks <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<meta http-equiv="X-UA-Compatible" content="IE=9, IE=10">
<link rel="stylesheet" type="text/css" href="https://community.esri.com//js.arcgis.com/3.13/esri/css/esri.css" />
<link rel="stylesheet" type="text/css" href="css/layout.css">
<script type="text/javascript">
var path_location = location.pathname.replace(/\/[^/]+$/, '');
var dojoConfig = {
parseOnLoad: true,
packages:[
{
name:"esriTemplate",
location: path_location
},
{
name:"utilities",
location: path_location + "/javascript"
},
{
name: "templateConfig",
location: path_location
}
]
};
</script>
<script type="text/javascript" src="//js.arcgis.com/3.13/"></script>
<script type="text/javascript" src="javascript/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="javascript/layout.js"></script>
<script type="text/javascript">
function init(){
dojo.require("utilities.app");
dojo.require("templateConfig.commonConfig");
var defaults = {
//The ID for the map from ArcGIS.com
//webmap for coc login:
//webmap : "cc6a46cf138d4173bac845d9534320e9",
//webmap for trplcwh login:
webmap : "b6a070e9b35d479597dbbd130fade937",
//The id for the web mapping applciation item that contains configuration info - in most
//cases this will be null.
appid:"",
//Enter a title, if no title is specified, the webmap's title is used.
title : "Ward Maps",
//Enter a subtitle, if not specified the ArcGIS.com web map's summary is used
subtitle : "This is a single story map. The goal is to link each polygon click to open the story map for the ward that was clicked.",
//Display legend
legend : "true",
//specify a proxy url if needed
proxyurl:"",
//Modify this to point to your sharing service URL if you are using the portal
sharingurl :"http://thecityofcalgary.maps.arcgis.com",
//add default template options. This includes the bing key, sharing url, proxy url,
//and any service urls (geometry, geocode, print)
//that may be needed by the template.
bingmapskey: commonConfig.bingMapsKey,
helperServices:commonConfig.helperServices
};
var app = new utilities.App(defaults);
app.init().then(function(options){
initMap(options);
});
}
//show map on load
dojo.addOnLoad(init);
</script>
</head>
<body class="tundra">
<div id="mainWindow" dojotype="dijit.layout.BorderContainer" design="headline"
gutters="false" style="width:100%; height:100%;">
<!-- Header Section-->
<div id="header" dojotype="dijit.layout.ContentPane" region="top">
<div id="headerText">
<div id="title"></div>
<div id="subtitle"></div>
</div>
<div id="logoArea">
</div>
<div id="header_flourish"></div>
</div>
<!-- Map Section -->
<div id="map" dojotype="dijit.layout.ContentPane" region="center" dir="ltr">
<div id="legendCon" dir="ltr">
<div id="legendToggle"><p id="legTogText"></p></div>
<div id="legendDiv"></div>
</div>
<img id="swipeImg" src="images/swipeStart.png" alt="">
</div>
</div>
<!--Loading Panel-->
<div id="loadingCon">
<div id="loadingDialog">
<div id="loadingHeader"></div>
<div id="loading"></div>
<img id="loadingImg" alt="" src="images/progressBar.gif">
</div>
</div>
</body>
</html>
... View more
05-07-2015
12:57 PM
|
0
|
5
|
5157
|
|
POST
|
Hello, I`ve downloaded a story map template to work with (just the one for single map). I`m wondering if there is a way to set it up so that when a polygon in a map service is clicked that a url can be opened (url is stored as attribute for that specific polygon). So far everything I`ve seen has to do with using the popup window to access information, I`d really like to be able to just click the polygon and have that url specific to that polygon open up. Thanks for any help!
... View more
05-06-2015
02:12 PM
|
0
|
13
|
13108
|
|
POST
|
Thanks Owen, with your code I've been able to get to the data and figured out how to get at specific attributes in each of the objects. Next steps, display the points on a map and display attribute data in popups. Cheers and thanks all for the help. Chris
... View more
02-25-2015
01:44 PM
|
0
|
1
|
4344
|
|
POST
|
Owen, Thanks for all the information. I shall continue on and let you all know how it's going. Everyone's help is greatly appreciated. Chris
... View more
02-24-2015
02:49 PM
|
0
|
0
|
418
|
|
POST
|
Hi Robert, Looking at the feature collection example it appears (and I may very well be wrong) that there are some 'keywords' (?) in the GeoJSON file that the sample links to (i.e. operationalLayers). Does this help to provide some link so that the leaflet api can decipher what's in the GeoJSON file? The file I'm working with doesn't have anything that looks like that. Here's a sample from my data file. There's around 2000 records in total but I've trimmed it down to 2 and have changed the attribute information, but you should get the gist of it. How does one proceed with a file that looks like this? Thanks for looking, Chris. {"crs": {"properties": {"name":"urn:ogc:def:crs:EPSG::3776"}, "type":"name"}, "features":[ {"geometry":{"coordinates":[-1726.4576,5655159],"type":"Point"}, "id":1, "properties":{ "Address":"ADDRESS ID 1", "AddressLud":"ABC", "Applicant":"APPLICANT 1", "Community":"COMMUNITY 1", "CreateDate":"2013-09-25", "Description":"Revision: changes...", "DpIsPermitted":"Discretionary", "DpOverrideDesc":"changes...", "DpOverrideDescInd":"Y", "FeeCategory":"Category 1", "JobId":"111111111", "JobType":"A_BC", "Lud":"ABC", "ParcelId":"1111110", "PermitNumber":"PERMIT1", "ProposedUse":"New use 1", "Status":"HOLD", "StatusDescription":"Hold", "TemplateType":"TEMPLATE"}, "type":"Feature"}, {"geometry":{"coordinates":[-5563.7950,5659257.8320],"type":"Point"}, "id":2, "properties":{ "Address":"ADDRESS ID 2", "AddressLud":"BCD", "Applicant":"APPLICANT 2", "Community":"COMMUNITY 2", "CreateDate":"2013-12-17", "Description":"New...", "DpIsPermitted":"Discretionary", "DpOverrideDesc":"Single...", "DpOverrideDescInd":"Y", "FeeCategory":"Category 2", "JobId":"222222222", "JobType":"B_CD", "Lud":"BCD", "ParcelId":"2222220", "PermitNumber":"PERMIT2", "ProposedUse":null, "Status":"PENREL", "StatusDescription":"Pending Release", "TemplateType":"TEMPLATE"}, "type":"Feature"}], "type":"FeatureCollection"}
... View more
02-24-2015
01:44 PM
|
0
|
5
|
4344
|
|
POST
|
Hi Robert, Thank you for the link. I'll look into it and get back to update thread. Cheers, Chris
... View more
02-24-2015
11:44 AM
|
0
|
0
|
4344
|
|
POST
|
Hi Rene, Thanks for the info. I will check it out and get back. Cheers, Chris
... View more
02-24-2015
11:43 AM
|
0
|
0
|
4344
|
|
POST
|
Hello everyone, I am investigating leaflet as a means of displaying point data from a GeoJSON file on a map. The coordinate system used in the GeoJSON file is not WGS84 geographic coordinates, so it is my understanding that leaflet should work for what I am trying to do. The first thing I need to do is reach out to a server url which returns the GeoJSON file, then I guess loop through the data in that file to display all the points on the map. Using the GeoJSON help page on the leaflet site (Using GeoJSON with Leaflet - Leaflet - a JavaScript library for mobile-friendly maps ) I think I can figure out how to plot points. What I'm having problems wrapping my head around is the first step of reaching out to the server url, getting the file and looping through the records. Thanks all, any and all help much appreciated. Chris
... View more
02-24-2015
08:06 AM
|
0
|
10
|
11243
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-10-2020 03:34 PM | |
| 1 | 02-23-2021 11:53 AM | |
| 1 | 02-16-2021 09:15 AM | |
| 1 | 12-10-2020 07:46 AM | |
| 1 | 01-18-2019 09:54 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-22-2021
04:31 PM
|