|
POST
|
Rebecca, You can certainly do a "View Source" in your browser to look at the code. It is not a widget. It could be any polyline feature in your app. The demo here allows you to key in a specific value or use the slider to calculate a percent of the total length of the polyline. There are five functions that do the calculation for placing the point along the polyline. About 90 lines of code. It can be easily modified for your purposes. Regards, Tom
... View more
12-29-2016
05:02 PM
|
1
|
0
|
6862
|
|
POST
|
Greg, I have a sample that may work the way you are suggesting. Please take a look at: Position Along It is completely client based, so no geoprocessing scripts required. Regards, Tom
... View more
12-29-2016
04:44 PM
|
3
|
14
|
6863
|
|
POST
|
Ozcan, You should be able to do this pretty easily. There is a good example here: Using the attribute inspector | ArcGIS API for JavaScript 3.18 You can easily add a function like this to select a feature by OBJECTID and open the info window containing the attribute inspector. Here is a code snippet: function updateByOBID(myOBID)
var selectQuery = new Query();
selectQuery.where = "OBJECTID = " + myOBID;
selectQuery.returnGeometry = true;
teamsFL.selectFeatures(selectQuery, FeatureLayer.SELECTION_NEW, function(features) {
if (features.length > 0) {
//store the current feature
updateFeature = features[0];
map.infoWindow.setTitle(features[0].getLayer().name);
map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
} else {
map.infoWindow.hide();
}
});
} regards, Tom
... View more
12-20-2016
02:19 PM
|
1
|
0
|
909
|
|
POST
|
Julie, Good to hear from you! I hope you are doing well! Yes, that is normal. My composite locator also returns results from both locators. The values are returned by hierarchy listed in the composite. In my case the composite searches building addresses first and then uses the street centerline second. Regards, Tom
... View more
12-08-2016
02:15 PM
|
0
|
0
|
2281
|
|
DOC
|
Rich, I had experimented with a few different time amounts. It was set to 3 seconds, I have doubled the time for the warning to disappear automatically. Thanks again for all your feedback. I hope this widget will work well for you! Regards, Tom
... View more
12-07-2016
08:16 AM
|
0
|
0
|
15356
|
|
DOC
|
Dean, I have posted an update! It does display a warning when you change those settings while courses are present in the traverse. If no courses are present, no warning will be displayed. Regards, Tom
... View more
12-06-2016
02:27 PM
|
0
|
0
|
15356
|
|
DOC
|
Rich, I have posted an update. I added logic that will warn the user about possible problems when changing units or angle information when course are present. If the user was actually supposed to be keying in distances using a different unit, I don't want them to have to start all over to change to the desired units. In addition, I have removed popups from occurring when the traverse widget is in use and added default settings for angle variables, distance and area units. Please take a look and let me know. I appreciate your feedback! Regards, Tom
... View more
12-06-2016
02:26 PM
|
0
|
0
|
15356
|
|
DOC
|
Rich, I think this may be a misunderstanding. These are bearing and distance measurements. Each course is drawn using the units you have selected. In this case you start drawing the courses with feet. When you switch to yards, the widget does not convert the course measurements, rather draws them using the unit selected. For instance, the first course from the starting point would be 510.9 feet or 510.9 yards depending on the unit you have selected. I hope that makes sense... Regards, Tom
... View more
12-05-2016
09:41 AM
|
0
|
0
|
15356
|
|
DOC
|
Rich, Can you try using 3734 for your WKID? I think you will get a better result. I will look into your enhancements. Forgot about popups. That should be easy enough to fix. Snapping should work. You must have feature layers displayed not map (image) layers of features. Feature layers provide geometry to snap against. Holding down the control key while you move the mouse around will enable snapping. I should be able to add defaults to the config too. Good idea. Regards, Tom
... View more
12-05-2016
08:28 AM
|
1
|
0
|
15356
|
|
DOC
|
Rich, I found and fixed the problem. Please download the widget again and let me know how it goes! Regards, Tom
... View more
12-02-2016
02:10 PM
|
0
|
0
|
15356
|
|
DOC
|
Rich, Excellent! I will have to look at adding logic for it to work in other projections. There may be a lot of folks that don't use an ESRI basemap for their web maps. Thanks for your assistance. I believe I have a web map that uses our state plane coordinate system that I can use to test this. Regards, Tom
... View more
12-02-2016
09:43 AM
|
0
|
0
|
15356
|
|
DOC
|
Rich, Ok. This might be the problem. I will investigate using a projection other that web mercator. Is your web map public? If so, I could use it for testing. Regards, Tom
... View more
12-02-2016
09:39 AM
|
0
|
0
|
15356
|
|
DOC
|
Rich, Thanks! Can you please show me a complete display of your map window too. That way I can see the course list and which buttons are enabled/disabled when you are drawing courses. What basemap are you using in your map window? Is the projection of the basemap web mercator? Thanks for your assistance. We will get this figured out! Regards, Tom
... View more
12-02-2016
09:09 AM
|
0
|
0
|
15356
|
|
DOC
|
Rich, I did a quick test in IE to see if I might have forgotten something and the problem doesn't appear to be browser specific. Also, there isn't a calculate button. Did you maybe mean duplicate? Here is a screen shot of my test: You can try hitting F12 and open the developers window. Maybe there is something in your console log that will give me a clue to what might be failing. Regards, Tom
... View more
12-02-2016
08:25 AM
|
0
|
0
|
15356
|
|
DOC
|
Rich, What browser and version are you using? Regards, Tom
... View more
12-02-2016
08:10 AM
|
0
|
0
|
15356
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-24-2023 10:45 AM | |
| 1 | 05-19-2023 08:13 AM | |
| 1 | 02-22-2023 09:12 AM | |
| 1 | 05-15-2015 03:11 PM | |
| 1 | 02-10-2015 11:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-26-2024
04:50 PM
|