POST
|
Thank you Logan Pugh! Your post was extremely helpful!
... View more
02-10-2015
09:31 AM
|
0
|
0
|
1849
|
POST
|
What I find interesting about everything is that my points worked just fine in November when I ran the same code. It didn't need a proxy server setup or anything. I could put a csv on oput GIS site and it would populate the map with points. No problem. I tried uninstalling and reinstalling Google Chrome to no avail.
... View more
02-06-2015
09:29 AM
|
0
|
2
|
349
|
POST
|
My errors in the console has changed to: XMLHttpRequest cannot load file:///C:/proxy/?http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.csv. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. js.arcgis.com/3.11/init.js:192 q js.arcgis.com/3.11/esri/layers/CSVLayer.js:19 error: RequestError: Unable to load /proxy/?http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.csv status: 0 js.arcgis.com/3.11/init.js:164 The XMLHttpRequest progress event property 'position' is deprecated. Please use 'loaded' instead.
... View more
02-06-2015
09:13 AM
|
0
|
0
|
349
|
POST
|
Hi Kelly, I followed the instructions and set up the proxy site I keep getting the following error when I ping {"error": {"code": 403,"details": ["The proxy tried to resolve a prohibited or malformed URL. The server does not meet one of the preconditions that the requester put on the request."], "message": "403 - Forbidden: Access is denied."}} The Esri rest services link looks like this whenever I run the Tomcat startup.bat file. { "currentVersion": 10.2, "folders": [ "Canvas", "Demographics", "Elevation", "Ocean", "Reference", "Specialty", "Utilities" ], "services": [ { "name": "ESRI_Imagery_World_2D", "type": "MapServer" }, { "name": "ESRI_StreetMap_World_2D", "type": "MapServer" }, { "name": "I3_Imagery_Prime_World", "type": "GlobeServer" }, { "name": "NASA_CloudCover_World", "type": "GlobeServer" }, { "name": "NatGeo_World_Map", "type": "MapServer" }, { "name": "NGS_Topo_US_2D", "type": "MapServer" }, { "name": "Ocean_Basemap", "type": "MapServer" }, { "name": "USA_Topo_Maps", "type": "MapServer" }, { "name": "World_Imagery", "type": "MapServer" }, { "name": "World_Physical_Map", "type": "MapServer" }, { "name": "World_Shaded_Relief", "type": "MapServer" }, { "name": "World_Street_Map", "type": "MapServer" }, { "name": "World_Terrain_Base", "type": "MapServer" }, { "name": "World_Topo_Map", "type": "MapServer" } ] } Not sure what I am missing here but the points still do not show up on my map when not the code is not ran in the sandbox.
... View more
02-06-2015
08:59 AM
|
0
|
1
|
349
|
POST
|
Ok. Thanks. XMLHttpRequest cannot load file:///C:/proxy/?http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.csv. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.init.js:162 k init.js:192 q CSVLayer.js:19 error: RequestError: Unable to load /proxy/?http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.csv status: 0CSVLayer.js:19 f.error init.js:164 The XMLHttpRequest progress event property 'position' is deprecated. Please use 'loaded' instead. Those are the error messages I am getting.
... View more
02-05-2015
11:33 AM
|
0
|
1
|
725
|
POST
|
02-05-2015
10:51 AM
|
0
|
6
|
725
|
POST
|
I do not know how to check the browser's developer console. I used to be able to run this simple code CSV | ArcGIS API for JavaScript but I can't even do that anymore.
... View more
02-05-2015
10:40 AM
|
0
|
2
|
725
|
POST
|
Hmmm....not sure what's going on here. I used to be able to grab my csv file from our server and do and xy events so the point shows up on the webmap made with the Javascript Api but I can't seem to do that anymore. I have been reading the discussion forums and a few suggestions mention setting up a proxy server. I ran the .jsp file but I am not really sure how to proceed? Doen't seem to make a difference. My csv file simply doesn's show up as points on my map anymore. I do not clearly understand the process of registering an app on the ArcGIS for Developers site either? Can someone please help me clarify? Thanks!!
... View more
02-05-2015
09:06 AM
|
0
|
14
|
5403
|
POST
|
My problem before was to get the csv to flash/ animate now the csv wont even show up 😞
... View more
02-05-2015
09:05 AM
|
0
|
0
|
530
|
POST
|
Hmmm....not sure what's going on here. I used to be able to grab my csv file from our server and do and xy events so the point shows up on the webmap made with the Javascript Api but I can't seem to do that anymore. I have been reading the discussion forums and a few suggestions mention setting up a proxy server. I ran the .jsp file but I am not really sure how to proceed? Doen't seem to make a difference. My csv file simply doesn's show up as points on my map anymore. I do not clearly understand the process of registering an app on the ArcGIS for Developers site either? Can someone please help me clarify? Thanks!!
... View more
02-05-2015
09:02 AM
|
0
|
0
|
530
|
POST
|
Thanks for your reply. The map came up and everything but the csv file was not in there or pulsing.
... View more
12-03-2014
10:35 AM
|
0
|
2
|
530
|
POST
|
12-03-2014
10:34 AM
|
0
|
3
|
530
|
POST
|
Thank you for your response Kelly. I did not get your code to work though. Not sure what I am missing.
... View more
12-03-2014
09:37 AM
|
0
|
5
|
530
|
POST
|
Re: Is it possible to convert a csv layer to an animated graphic (pulsing point)? <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no"> <!-- meta tags to hide url and minimize status bar to give the web app a native app look this only happens after app is saved to the desktop--> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="translucent-black"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Geolocation API</title> <link rel="stylesheet" href="http://js.arcgis.com/3.11/esri/css/esri.css"> <!-- Details about the Webkit CSS Properties http://css-infos.net/properties/webkit.php and http://www.pointabout.com/category/development-blog/pointabout-dev-help/--> <style> html, body #map { height: 100%; margin: 0px; padding: 0px; width: 100%; } @-webkit-keyframes pulse { 0% { opacity: 1.0; } 45% { opacity: .20; } 100% { opacity: 1.0; } } @-moz-keyframes pulse { 0% { opacity: 1.0; } 45% { opacity: .20; } 100% { opacity: 1.0; } } #map_graphics_layer { -webkit-animation-duration: 3s; -webkit-animation-iteration-count: infinite; -webkit-animation-name: pulse; -moz-animation-duration: 3s; -moz-animation-iteration-count: infinite; -moz-animation-name: pulse; } </style> <script src="http://js.arcgis.com/3.11/"></script> <script> var map, csv; require([ "esri/map", "esri/layers/CSVLayer", "esri/Color", "esri/symbols/SimpleMarkerSymbol", "esri/renderers/SimpleRenderer", "esri/InfoTemplate", "esri/urlUtils", "esri/geometry/Point", "esri/graphic", "dojo/domReady!" ], function( Map, CSVLayer, Color, SimpleMarkerSymbol, SimpleRenderer, InfoTemplate, urlUtils, Point, Graphic ) { urlUtils.addProxyRule({ proxyUrl: "/proxy/", urlPrefix: "MYSITE.com" }); map = new Map("map", { basemap: "gray", center: [ -60, -10 ], zoom: 4 }); csv = new CSVLayer("http://MYSITE.com/2.5_weekz.csv", { copyright: "Echologics" }); var orangeRed = new Color([238, 69, 0, 0.5]); // hex is #ff4500 var marker = new SimpleMarkerSymbol("solid", 15, null, orangeRed); var renderer = new SimpleRenderer(marker); csv.setRenderer(renderer); var template = new InfoTemplate("${type}", "${place}"); csv.setInfoTemplate(template); map.addLayer(csv); graphic = new Graphic(csv) map.graphics.add(graphic); }); </script> </head> <body> <div id="map"></div> </body> </html>
... View more
11-21-2014
09:35 AM
|
0
|
0
|
366
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|