Select to view content in your preferred language

Adding custom defined points to world_image

933
5
07-19-2012 06:56 AM
TimVrabel
Emerging Contributor
Hi im new to using this whole ArcGIS, just started yesterday. But im have the map looking at what i want it to and now its just a matter of adding custom defined points.

Im trying to put points on the map, one for the tee and one for the hole, of a golf course. Also i want to be able to show and hide the points with a checkbox which i have added to the map from some examples. So i guess my question is how do i define these points on the map and have something pointing to it on the map? All i could find was each layer being pointed to a samples URL that had everything predefined, would i have to do each tee and hole like the ititExtent and then just add the layer to my holes ArcGISDynamicMapServiceLayer?

Any help to get me started would be appreciated, Thanks!
0 Kudos
5 Replies
StephenLead
Honored Contributor
Hi Tbone,

Welcome to the wonderful world of ArcGIS.

First of all, can you let us know what software you have available to you? Do you definitely have ArcGIS Server, and are you trying to create a web-map? (If not, eg if you just want to make a printed map, you could probably do this a lot more simply using a desktop GIS program).

You don't actually need to have a copy of ArcGIS Server, but this is typically where you would store your data (as layers). If you don't have access to ArcGIS Server you'll need to get your information into the web-map somehow.

One option would be to create a KML file, and place it somewhere publicly accessible on the web. Then add this KML Layer to your web map.

Another alternative would be to hard-code the required information into your application. Each tee and hole would have a location + any other relevant information (name, id, etc). A good approach is to write your data's definition in JSON format, then use a Feature Layer created from a Feature Collection.

You would need to modify this script somewhat. You'd define a featureSet then populate it with the set of features which you'd build up from your JSON code.

Good luck,
Steve
0 Kudos
TimVrabel
Emerging Contributor
This is the map im trying to get working with my application:
http://bit.ly/OeFwMu

Pretty much its a golf scorecard and i want to add a tab that will display this map and all of the hole information. I thought about hard coding it into the application but since theres 18 holes and 18 tees that would take some time.

I downloaded the trial version of ArcGIS but when i load it there is nothing that comes up to do with the globe once its loaded. I cant even add a boundaries layer.


Also, is there a way to edit the legend from my map? Or is that not available if your in trial
0 Kudos
TimVrabel
Emerging Contributor
Is there a way to create a KML file from one of my online map layers?
0 Kudos
StephenLead
Honored Contributor
Hi Tim,

Is it an option to simply use ArcGIS.com, as in the link above? You can access the legend and Table of Contents checkboxes at the top left.

Re: the trial version of ArcGIS, this is presumably the Desktop version that you've installed on your computer. Check the manual for information on how to add data, including from ArcGIS Online or basemaps from Bing, etc. The trial is a full copy of ArcGIS Desktop so you can edit the legend, by double-clicking on a layer in the Table of Contents. The help file is pretty good, so check out the getting started sections.

To customise an online map based on ArcGIS.com check out the Create webmap from ID sample.

I don't believe you can export from ArcGIS.com to KML, but I could be wrong.

Steve
0 Kudos
MiroslavStoev
New Contributor
Hi guys!
I hope it is not too late for question. I want to use Feature layer created using feature collection capabilities of esri api for javascript. But the example in the site does not help me much. Is there better example with custom points (one, two or tree), just to see the principle?
I have some points with lat, lon, point name and link to a icon (in json format), but I am not sure how and where to put them in init() function.
Thanks!
0 Kudos