|
POST
|
I ended-up creating a feature service from a permanent/flat SQL table populated by internal processes. From here, I created an xy event layer (using the lat/longs available in the table) and published this as a map service with a 1k cap. I am calling it through the JSAPI in MODE_ONDEMAND. Works very well!
... View more
01-07-2016
12:53 PM
|
0
|
0
|
2506
|
|
POST
|
I'm looking to narrow availability of some map services utilized by my JSAPI application. I am using ArcGIS Server 10.3 on a local Windows/IIS install with proxy availability. I have several applications on different domains and servers accessing the centrally-located ArcGIS Server resources, which are publicly available... I'd like to have it set-up so that only these applications can access the resources, but users shouldn't need to supply credentials - the idea is to make it difficult for a user to inspect the web requests to acquire the public resources outside of the application and poke around for data harvesting and hot-linking in non-sanctioned applications. What's the best way to accomplish this? I've found several resources and write-ups on the topic, but I am still unclear as how to do this correctly and securely.
... View more
01-07-2016
12:39 PM
|
2
|
11
|
9174
|
|
POST
|
Can you access your map service for the cached layer? Is the console in dev tools throwing any errors? Also, I would try to use AMD module requires as dojo.require method is considered legacy (shouldn't cause an issue, just a stylistic preference nowadays).
... View more
01-07-2016
11:43 AM
|
0
|
1
|
4153
|
|
POST
|
Seems like there was a bug (NIM070071) way back in 2.3 - Default date of 1970 for date field at 2.3 that did not honor null values. It doesn't seem to be related, though. Do you have a default value for [date] set on the service, by chance?
... View more
01-07-2016
08:42 AM
|
0
|
1
|
1335
|
|
POST
|
Veena, Here's some example code: <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title></title>
<link rel="stylesheet" href="https://js.arcgis.com/3.15/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.15/esri/css/esri.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
#map{
padding:0;
}
.increment {
background-image: url('https://useiconic.com/open-iconic/svg/fullscreen-exit.svg');
background-repeat: no-repeat;
background-size: 16px 16px;
background-position: center;
}
.decrement {
background-image: url('https://useiconic.com/open-iconic/svg/fullscreen-enter.svg');
background-repeat: no-repeat;
background-size: 16px 16px;
background-position: center;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://js.arcgis.com/3.15/"></script>
<script>
var map;
require([
"esri/map", "esri/dijit/BasemapGallery", "esri/arcgis/utils",
"dojo/parser", "dojo/on",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/TitlePane",
"dojo/domReady!"
], function(
Map, BasemapGallery, arcgisUtils,
parser, on
) {
parser.parse();
map = new Map("map", {
basemap: "topo",
center: [-105.255, 40.022],
zoom: 13
});
//add the basemap gallery, in this case we'll display maps from ArcGIS.com including bing maps
var basemapGallery = new BasemapGallery({
showArcGISBasemaps: true,
map: map
}, "basemapGallery");
basemapGallery.startup();
basemapGallery.on("error", function(msg) {
console.log("basemap gallery error: ", msg);
});
//remove +- span and replace with SVG
map.on("load", function (e) {
$('div.esriSimpleSliderIncrementButton').find('span').remove();
$('div.esriSimpleSliderDecrementButton').find('span').remove();
$('div.esriSimpleSliderIncrementButton').append("<div class='increment'></div>");
$('div.esriSimpleSliderDecrementButton').append("<div class='decrement'></div>");
});
});
</script>
</head>
<body class="claro">
<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'"
style="padding:0;">
<div style="position:absolute; right:20px; top:10px; z-Index:999;">
<div data-dojo-type="dijit/TitlePane"
data-dojo-props="title:'Switch Basemap', closable:false, open:false">
<div data-dojo-type="dijit/layout/ContentPane" style="width:380px; height:280px; overflow:auto;">
<div id="basemapGallery"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
... View more
01-07-2016
07:43 AM
|
1
|
0
|
1190
|
|
POST
|
You might want to check out esri/geometry/geometryEngineAsync | API Reference | ArcGIS API for JavaScript There are quite a few overlay tools, depending on your needs, you can call directly on the client-side now to extract the features of layer2 using boundary from layer1.
... View more
01-06-2016
09:24 PM
|
1
|
0
|
2972
|
|
POST
|
You also might want to read through More adventures in overlay: comparing commonly used overlay tools | ArcGIS Blog
... View more
01-06-2016
09:16 PM
|
3
|
1
|
1430
|
|
POST
|
Oh, and the reason for this is because null is not a value... you can't compare something that's not a value to another value, hence, why x = null can never be true.
... View more
01-06-2016
09:02 PM
|
0
|
0
|
1132
|
|
POST
|
Are you sure you're using the ArcGIS JavaScript API for this and not the query builder in ArcMap? You have this posted in "ArcGIS Server with JavaScript API". Also, when testing for null, it's not "<> null" or "= null", it's "is not null" to exclude and "is null" to include.
... View more
01-06-2016
08:56 PM
|
0
|
1
|
1132
|
|
POST
|
Evelyn, Again, I would suspect the directory setup/hostname isn't 100% - check and make sure you have it extracted where you think you have it extracted and the hostname set-up correctly. I had these same type of errors when I didn't have hostname correct. Also, just to make sure... I would check the MD5 hash and make sure the API didn't get corrupted during the download. Esri publishes the MD5 hash on the download page.
... View more
01-06-2016
08:52 PM
|
1
|
3
|
1276
|
|
POST
|
Also, Rebecca Strauch, GISP has a good list of WAB resources you may want to peruse for custom widgets - maybe someone created one similar to what you're looking to do: Web AppBuilder Developer Edition - Customization Resource List
... View more
01-06-2016
04:24 PM
|
0
|
0
|
1782
|
|
POST
|
At least with the JSAPI, there's support to do something similar (at least I think so, your gif is timing out and won't open for me!): Raster layer slider | ArcGIS API for JavaScript
... View more
01-06-2016
04:11 PM
|
0
|
2
|
1782
|
|
POST
|
In my experience, Chrome offers the best JavaScript performance, if that's something that matters. I am more familiar with IE's dev tools, however. Not that Chrome's dev tools are bad, but there are a few quirks that make certain things easier to debug in IE11.
... View more
01-06-2016
12:20 PM
|
0
|
0
|
1347
|
|
POST
|
You might need to escape your quotes; here's an example how I set my content: 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>")
... View more
01-06-2016
08:44 AM
|
2
|
0
|
2282
|
|
POST
|
You need a zip code layer - you can find a shapefile and push a map service out to access in the JSAPI. Word of advice, though, zip codes aren't really polygons in the truest sense - they are delivery points. You can find them in polygonal format, but they are relatively poor for associating data because they change so frequently; additionally, zip codes may not be captured spatially as they sometimes reference a building, or a floor of a building, etc. Again, they are delivery points... The US Census Bureau created something called ZCTAs (Zip Code Tabulation Areas) to create aereal features - ZIP Code Tabulation Areas (ZCTAs) - Geography - U.S. Census Bureau Here's where you can download the 2015 ZCTAs: ftp://ftp2.census.gov/geo/tiger/TIGER2015/ZCTA5/ From here, you can create a map service and push to server/AGOL, if ZCTAs work for you. Now, ZCTAs and zips aren't the same thing, but they may work for you, depending on your data - check out ZIP or ZCTA? Also, you may find an Esri Rest service from data.gov: Search for a Dataset - Data.gov I didn't see a nationawide dataset, though, but depending on your state...
... View more
01-06-2016
08:10 AM
|
1
|
2
|
1496
|
| 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
|