POST
|
John, Since you only want to fire your buffer function when a location has been found, you could use this code to get you going: var geoLocate = new LocateButton({
map:map
}, "LocateButton");
geoLocate.startup();
geoLocate.on("locate", dothis);
function dothis(locate){
//Put your buffer code here
}; Once the user clicks on the locate button and it finds a location your function will run. You can access the results (for example the position) through accessing the locate properties as outlined here. Hope this makes sense! Tim
... View more
06-25-2014
04:19 AM
|
0
|
0
|
615
|
POST
|
You would have to contact ESRI to change their geocoder.
... View more
06-23-2014
04:53 AM
|
0
|
0
|
216
|
POST
|
You could always use the measure tool on the upper right site. You can draw polygons with that and it will give you square acreage. Hope this helps! Tim
... View more
06-23-2014
04:47 AM
|
0
|
0
|
841
|
POST
|
Jay, add "esri/domUtils" and domUtils that worked for me. Tim
... View more
06-20-2014
11:17 AM
|
0
|
0
|
300
|
POST
|
Jay, "dojo/on" in your require and on in your function is missing. Tim
... View more
06-20-2014
11:02 AM
|
0
|
0
|
300
|
POST
|
Matt, I don't know why this error pops-up, sorry 😞 I hope somebody else can help you.
... View more
06-18-2014
11:25 AM
|
0
|
0
|
473
|
POST
|
Matt, maybe this helps? I use this geocoder.on("find-results", showAlert); // If no address found function showAlert(evt) { if (evt.results.results.length > 0){ console.log("Match Found"); } else { alert("No address has been found."); } }; Hope this is what you were looking for. Tim
... View more
06-18-2014
10:34 AM
|
0
|
0
|
473
|
POST
|
Lets say you have a layer named street, you can use this to uncheck it: street.setVisibility(false); I hope that is what you were asking for.
... View more
06-18-2014
09:19 AM
|
0
|
0
|
271
|
POST
|
You can start an editing session and then add it through that. If you have a different shapefile that has the county you want to add already, you can use the append or merge tool. I hope this helps!
... View more
06-18-2014
08:54 AM
|
0
|
0
|
180
|
POST
|
Jamie, In my example, the user can decide the size and color of the graphic before they draw it. Tim
... View more
06-12-2014
04:04 AM
|
0
|
0
|
356
|
POST
|
Jamie, In my application I have added a number value the user can put in to make the point larger or smaller. Is this what you mean? Tim
... View more
06-11-2014
08:40 AM
|
0
|
0
|
356
|
POST
|
When it finds lines or points does it highlight them?
... View more
06-09-2014
12:13 PM
|
0
|
0
|
491
|
Title | Kudos | Posted |
---|---|---|
1 | 10-25-2013 07:58 AM | |
1 | 03-06-2014 06:03 AM | |
4 | 12-09-2013 03:25 AM | |
1 | 04-16-2014 04:11 AM | |
1 | 04-24-2014 10:53 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|