POST
|
Yes, it is a point clicked on the map by the user and then all features are selected from another layer that fall within a user defined buffer distance and as a result output is a summary table. In web app builder using GP widget task works like this:
... View more
10-26-2015
11:11 AM
|
0
|
2
|
646
|
POST
|
Hi James, I have a GP service working with a feature set that performs a select by location, and I am using it both in Web app builder in, GP widget and also in a JS application and it works fine.
... View more
10-26-2015
10:52 AM
|
3
|
6
|
646
|
POST
|
Melanie, I also did not use ArcGIS server for the last tile package I published, and it worked fine, got all the tiles published on AGOL. Did you check out Yovav Zohar blog: Create Cache and TPK without ArcGIS for Server - Workflows for Desktop users and follow the second option, share as tile package and do not forget to use FULL EXTENT in ArcMap. and follow the steps here to enable ArcGIS Runtime tools: How to create a tile package—Help | ArcGIS for Desktop
... View more
10-23-2015
12:11 PM
|
1
|
0
|
288
|
POST
|
Thanks for looking at it, Yes I see what was wrong there.
... View more
10-12-2015
02:57 PM
|
0
|
0
|
568
|
POST
|
Jake, I tried adding tiled layer using your example here, I am not getting any errors but the tile layer is not showing up and even the base map toggle is gone, Could you please take a look at the JSFiddle and let me know, what is wrong here. http://jsfiddle.net/JSSR/6811p3um/ Thank you.
... View more
10-12-2015
02:18 PM
|
0
|
2
|
568
|
POST
|
Tracy, I have worked with ScaleDependentRenderer, and this tutorial helped me and they have similar example, like you have come up with: Labeling features client-side | Guide | ArcGIS API for JavaScript
... View more
09-29-2015
11:24 AM
|
0
|
1
|
812
|
POST
|
James, Here, I added an infoTemplate with Score : <!DOCTYPE html>
<html dir="ltr">
<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>ArcGIS API for JavaScript | Basic Search</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.14/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css">
<style>
html,
body,
#map {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#search {
display: block;
position: absolute;
z-index: 2;
top: 20px;
left: 74px;
}
</style>
<script src="http://js.arcgis.com/3.14/"></script>
<script>
require([
"esri/map",
"esri/dijit/Search",
"esri/InfoTemplate",
"esri/geometry/Extent",
"esri/tasks/locator",
"dojo/dom",
"dojo/domReady!"
], function (Map, Search,InfoTemplate, Extent, Locator, dom) {
var map = new Map("map", {
basemap: "topo",
center: [-117.19, 34.055],
zoom: 18
});
//Create extent to limit search
var extent = new Extent({
"spatialReference": {
"wkid": 102100
},
"xmin": -13063280,
"xmax": -13033928,
"ymin": 4028345,
"ymax": 4042715
});
var search = new Search({
enableButtonMode: false,
enableLabel: false,
enableInfoWindow: true,
autoComplete: true,
autoNavigate: true,
map: map,
sources:
[
{
locator: new Locator("http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"),
singleLineFieldName: "SingleLine",
outFields: ["score"],
name: "world_geocoder",
localSearchOptions: {
minScale: 300000,
distance: 50000
},
placeholder: "Search Place or Address",
searchExtent: extent,
highlightSymbol: new esri.symbol.PictureMarkerSymbol("images/mylocation5.png", 17, 32).setOffset(18, 27),
infoTemplate: new InfoTemplate("Search Result: ${Score}")
}
]
}, "search");
search.startup();
});
</script>
</head>
<body>
<div id="search"></div>
<div id="map"></div>
</body>
</html> See this example; Search using a suggestion template | ArcGIS API for JavaScript
... View more
09-02-2015
03:02 PM
|
2
|
0
|
459
|
POST
|
Thanks for the reply Robert. I tried suffix: "TX, US", it did not work, also tried with USA instead of US. Neither did this: s.set("sources", sources.reverse(), sources[4].countryCode = " TX, US"); Not sure if I have it right.
... View more
08-27-2015
11:30 AM
|
0
|
3
|
983
|
POST
|
Robert, Can we use suffix like you suggest here, to limit search to a state in USA when using CountryCode, like this "Texas, US" , right now it works fine, finding results only for USA, but want I the search within Texas only. s.set("sources", sources.reverse(), sources[4].countryCode = "US")
search extent also works, but I am still getting some results from neighboring states, wanted to know if there was a way to refine it further. Thank you.
... View more
08-27-2015
10:49 AM
|
0
|
5
|
983
|
POST
|
Matt, Thanks, it worked.I had to change the index number of the source layer to correspond to the order in my application.
... View more
08-21-2015
06:57 AM
|
0
|
0
|
804
|
POST
|
Yeah you right, cant see those links anymore, and no updates. Sorry, the tiles I created and published are working fine in my application, so have I not had need to do this again since then. But I did find a faster way to create and publish tiles following these steps: 1. Use full extent in ArcMap 2. Use Share as Tile package service, by enabling ArcGIS Runtime Tools from Customize -> ArcMap Options (under sharing tab) and then using the Share Tile Package wizard. The tile package was saved locally on the C drive. 3. Tile package is then uploaded to My Content on AGOL, using Share Package Tool. 4. After the tile package was uploaded and shared on My Content and it was published as tile layer. Create Map Tile Package tool was taking over 36 hours to create tiles, where as following these steps, it took less than ten hours and all the tiles published faster on AGOL , preserved legend and worked fine in JavaScript application. This blog by :Yovav Zohar explains it better Create Cache and TPK without ArcGIS for Server - Workflows for Desktop users
... View more
08-20-2015
02:23 PM
|
1
|
1
|
1660
|
POST
|
Matt, Is there a way to add source country code to be only USA, in Search to it's default locator, without having to define a locator for USA in sources? Thanks,
... View more
08-20-2015
09:23 AM
|
0
|
3
|
804
|
POST
|
});
sources.push({
geocoder: new Geocoder("https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer"),
singleLineFieldName: "Single Line Input",
outFields: ["Addr_type"],
name: "ESRI World Geocoder",
autoComplete: true,
maxResults: 6,
maxSuggestions: 6,
//locator.outSpatialReference = map.spatialReference;
//},
placeholder: "Find a place or address",
});
//Set the sources above to the search widget
s.set("sources", sources);
s.startup(); I tried your suggestion, do I have it right? because it is showing up in the drop down at the end of the list, but is not actually working. Thanks.
... View more
08-19-2015
09:30 AM
|
0
|
2
|
484
|
Title | Kudos | Posted |
---|---|---|
1 | 02-26-2017 10:19 AM | |
1 | 12-15-2015 12:26 PM | |
1 | 10-23-2015 12:11 PM | |
1 | 06-09-2015 07:51 AM | |
1 | 06-02-2015 11:44 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|