|
POST
|
Eric, Off top hand, I'm not sure... I would need to dig a bit to see if there are any options. However, I wanted to share a technique I employ for a similar scenario. We have a bit of stuff that runs in the background that causes rendering artifacts to manifest on the front-end. Really, we could probably adjust the timing of events and that would probably prevent the artifacts, but I implemented a workaround by calling a dojo standby - dojox.widget.Standby — The Dojo Toolkit - Reference Guide - then fading-in the map container after all pre-processing completes. So, the user simply sees a spinner until the map is ready, then it fades-in. It looks pretty slick... you could call your fade-in routine and dismiss the spinner after the persisted basemap loads. This still seems like a kludge, just less kludgey!
... View more
07-24-2015
10:52 AM
|
2
|
1
|
6024
|
|
POST
|
I think some would argue that, theoretically, everything is reducible to physics. Some of these papers/presentations may help: http://www.csci.psu.edu/seminars/springnotes/2009/Duffy2009.pdf http://www.hec.usace.army.mil/publications/TechnicalPapers/TP-144.pdf http://www.nws.noaa.gov/iao/InternationalHydrologyCourseCD1/1105/Vieux/presentation(vieux).pdf http://www.pnl.gov/main/publications/external/technical_reports/pnnl-16055.pdf https://www.esri.com/~/media/Files/Pdfs/industries/mining/pdf/subsurface-modeling.pdf
... View more
07-23-2015
12:55 PM
|
1
|
0
|
983
|
|
POST
|
Ryan, I modified one of the Esri sandbox examples - ArcGIS API for JavaScript Sandbox - to use ssl: ArcGIS API for JavaScript Sandbox Line 27 - when changed to https, works well. Can you access the ssl link directly without issue?
... View more
07-23-2015
12:29 PM
|
1
|
0
|
4255
|
|
POST
|
Paulius, If you are using the JavaScript API, have a look at the following for some ideas: Feature collection | ArcGIS API for JavaScript Popup | ArcGIS API for JavaScript
... View more
07-23-2015
08:48 AM
|
0
|
1
|
1209
|
|
POST
|
This is working ok for me in the sandbox of the sample you mentioned: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title></title>
<link rel="stylesheet" href="http://js.arcgis.com/3.14/dijit/themes/tundra/tundra.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
#map { height: 100%; margin: 0; padding: 0; }
#meta {
position: absolute;
left: 20px;
bottom: 20px;
width: 300px;
height: 100px;
z-index: 40;
background: #fff;
color: #777;
padding: 5px;
border: 2px solid #666;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
font-family: arial;
font-size: 0.9em;
}
#meta h3 {
color: #666;
font-size: 1.1em;
padding: 0px;
margin: 0px;
display: inline-block;
}
#loading {
float: right;
}
</style>
<script src="http://js.arcgis.com/3.14/"></script>
<script>
var map;
require([
"esri/map", "esri/layers/KMLLayer",
"dojo/parser", "dojo/dom-style",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!"
], function(
Map, KMLLayer,
parser, domStyle
) {
map = new Map("map", {
basemap: "topo",
center: [-108.663, 42.68],
zoom: 6
});
parser.parse();
var kmlUrl = "https://dl.dropboxusercontent.com/u/2654618/kml/Wyoming.kml";
var kml = new KMLLayer(kmlUrl);
map.addLayer(kml);
kml.on("load", function() {
domStyle.set("loading", "display", "none");
});
var kmlUrl2 = "https://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml";
var kml2 = new KMLLayer(kmlUrl2);
map.addLayer(kml2);
kml2.on("load", function() {
domStyle.set("loading", "display", "none");
});
});
</script>
</head>
<body class="tundra">
<div data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="design:'headline',gutters:false"
style="width: 100%; height: 100%; margin: 0;">
<div id="map"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'center'">
<div id="meta">
<span id="loading"><img src="images/loading_black.gif" /></span>
<h3>Display KML Using a <a href="https://developers.arcgis.com/javascript/jsapi/kmllayer-amd.html">KMLLayer</a></h3>
<br />
The map displays a simple KML file that was created using Google Earth and
is hosted on an Esri server. Symbology and attributes are honored.
<div>
</div>
</div>
</body>
</html>
... View more
07-21-2015
08:45 AM
|
0
|
1
|
1974
|
|
POST
|
Not sure about the Android API, but at least for the JSAPI, with v4.0, 3D will be available: UC Q&A | 2015 Esri User Conference I haven't heard anything about the Android API, but it's possible they could add support. You could always create a mobile app in JavaScript!
... View more
07-21-2015
08:40 AM
|
0
|
1
|
1192
|
|
POST
|
Awhile back, we had to set-up some jobs to run overnight - we ended-up scheduling tasks to run at prescribed times, similar to how they do it in this blog: Scheduling a Python script or model to run at a prescribed time | ArcGIS Blog You don't need ArcGIS Server to do this - you can schedule jobs using a desktop license to run Python scripts (outside of the ArcGIS app) that invoke the geoprocessor. Also, since you have a server license, you could publish a geoprocess service: * How to publish a service—Documentation (10.3 and 10.3.1) | ArcGIS for Server * http://help.arcgis.com/en/arcgisdesktop/10.0/pdf/publishing-geoprocessing-services-tutorial.pdf Then, have your application make calls to the service at given intervals.
... View more
07-21-2015
08:30 AM
|
0
|
1
|
1056
|
|
POST
|
Also useful to reduce size - 7-Zip: http://www.7-zip.org/ Usually, 7-Zip compresses to 7z format 30-70% better than to zip format. And 7-Zip compresses to zip format 2-10% better than most of other zip compatible programs.
... View more
07-21-2015
08:10 AM
|
1
|
0
|
924
|
|
POST
|
Thanks, Bjorn. You weren't kidding when you said very soon.
... View more
07-16-2015
05:14 PM
|
1
|
0
|
3733
|
|
POST
|
3D should be really interesting - I'm looking forward to that.
... View more
07-15-2015
11:16 AM
|
0
|
0
|
3052
|
|
POST
|
Here's a JS Fiddle example I put together showing you how to prevent free text (defacto validation): Edit fiddle - JSFiddle I'm simply using an array of values for the source - you'll have to replace with the ashx!
... View more
07-15-2015
09:48 AM
|
2
|
1
|
1010
|
|
POST
|
Chris, I have had to do stuff like this outside of the ArcGIS JS API in .NET. Just to give you an idea if you're using .NET and SQL Server... Basically, it's autocomplete with validation. We used a .NET handler (.ashx - HTTP Handlers and HTTP Modules Overview). As the user types, a stored procedure in SQL would be called to pull a list of matched recommendations based on their search string. It's similar to how this person is doing it here: autocomplete - auto complete textbox using jquery UI in vb.net - Stack Overflow They are using in-line SQL, though (yuck) - but you get the idea. As for the validation, I would be careful interrupting the user while they are typing, but maybe add a notification to the page and highlight the field, or something like that, then disable the form submit button until they enter a valid, autocompleted value. The link I gave - it doesn't look like they are doing any validation. Here's some info on preventing free text: jquery - Autocomplete disallow free text entry? - Stack Overflow Source looks to support multiple types, including the .NET handler so long as it returns JSON. http://api.jqueryui.com/autocomplete/#option-source Here's info on returning JSON from a .NET handler: How to implement jquery autocomplete with JSON rsponse from ashx | The ASP.NET Forums In summary, it looks like you could use the jQuery UI widget, then, source it to a .NET handler that calls a proc as the user types, which then returns a JSON object. If you go that route, you'll need jQuery base, then JQuery UI on top of that.
... View more
07-15-2015
09:34 AM
|
2
|
3
|
1010
|
|
POST
|
Here's the code: contextPopupTemplate.setContent("<div><strong>Foo: ${foo}</strong></div>" +
"<hr>" +
"<strong>Bar: </strong> ${bar}<br />" +
"<strong>Bat: </strong> <a href=\"#\" onclick=\"window._contextPopup._initPopup(\'" + batLink + "\', 2);\">Bat</a>") In my case, I'm calling this from within a module, so I needed the onclick event to be global. I also had to escape chars for it to render correctly on the page.
... View more
07-15-2015
06:42 AM
|
1
|
0
|
2462
|
|
POST
|
Peggy, I had some issues with hyperlinks discussed here: InfoWindow fields - URLs automatically add "_blank" as target I got it working correctly - I also added some onClick handling... let me dig-up that code...
... View more
07-15-2015
06:38 AM
|
0
|
1
|
2462
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2020 01:25 PM | |
| 1 | 03-20-2019 09:07 AM | |
| 2 | 07-31-2015 07:31 AM | |
| 1 | 09-14-2015 12:14 PM | |
| 1 | 05-12-2015 12:04 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-27-2023
02:30 AM
|