|
POST
|
Brian, You could always put a graphic on top of that feature? See this example. Hope this helps! Tim
... View more
03-11-2014
08:59 AM
|
0
|
0
|
2601
|
|
POST
|
Rick, before you do what I have suggested, right click your legend and choose properties. Go to the items tab. On the left side, right-click the feature you would like to change the style of and click style. Maybe one of the styles doesn't have the date attached? Let me know! Tim
... View more
03-10-2014
09:11 AM
|
0
|
0
|
1802
|
|
POST
|
Michael, The legend will only show the layers of toggled feature. Meaning, all checked layers will show in your legend, doesn't matter if they are in your extend or not. Tim
... View more
03-10-2014
05:44 AM
|
0
|
0
|
2310
|
|
POST
|
Mylene, there are no stupid questions only stupid answers! Lets say you have an excel spreadsheet with 10 points. Open an mxd, click "File" -> Add Data -> Add XY data. This will create a shapefile with your excel spreadsheet data. If you need to add data to this file, you can either enter an Edit session and add new points. Or you can add it to your original spreadsheet and repeat the steps and create a new shapefile. To learn the basics of editing please look here. Since you are new to all this, maybe this free webcourse will help you! Tim
... View more
03-07-2014
08:59 AM
|
0
|
0
|
869
|
|
POST
|
Issue #1 ArcGIS doesn't work in the way that you would like it to. 🙂 You need to place the point and then fill out the attributes of the newly created point, you can't create a new attribute table entry, fill in Lat/Long and the point will appear. The spatial reference of your point is not stored in your LAt and Long fields, those are just fields that you would like, so you can identify where the point is. You can however create an excel spreadsheet that has Lat and Longs and through the Import XY data make a feature service out if it. This will create a new point layer for you. Issue #2 You could just copy and paste your ArcGIS attribute table into an excel spreadsheet when you want to update the spreadsheet.
... View more
03-07-2014
08:39 AM
|
0
|
0
|
869
|
|
POST
|
Nick, I am using this https://developers.arcgis.com/javascript/jssamples/widget_legendvisible.html Tim
... View more
03-07-2014
03:53 AM
|
0
|
0
|
2310
|
|
POST
|
Rick, you can always right-click your legend and convert it to graphics. After that right-click it again choose Ungroup. Now you can delete points you don't like and clean up your legend. Hope this helps! Tim
... View more
03-07-2014
03:19 AM
|
0
|
0
|
1802
|
|
POST
|
Alex, the basemaps won't show up if you just open your textfile (code) as an .html, via a webbrowser. The only way you can test it is, if you put the html file in your \inetpub\wwwroot folder, open your browser and then use <computername>/yourmap.html Hope this helps! Tim
... View more
03-06-2014
08:40 AM
|
0
|
0
|
7104
|
|
POST
|
Bob, they stated it will be able to be used in the future. Right now all you can do is upload it to your content, which allows you to share it with other users (not in maps yet though). Tim
... View more
03-06-2014
07:54 AM
|
0
|
0
|
34943
|
|
POST
|
Hey Bob, with an organizational account, you can upload feature services (which honors domains from a gdb), which you can use in maps. Open the MXD in which you have prepared your gdb layer with your symbology. Make sure only that layer is in your MXD. 1) Click on File -> Sign In... (Here you sign into your organizational account) 2) Click on File -> Share As -> Service -> Publish a service 3) As connection choose My Hosted Services (My Account) and as service name use what you want the layer to be called. 4) Under the capabilities tab uncheck "Tiled Mapping" and check "Feature Access" 5) Fill out the Item Description tab 6) Under sharing you can check who is able to see it once published 7) Click Publish in the upper right corner and it will soon show up in your "My Content" on ArcGIS Online Now you can use those feature services in your maps. You can do this for each file in you gdb. Hope this helps! Tim
... View more
03-06-2014
06:03 AM
|
1
|
3
|
34942
|
|
POST
|
Thanks Ken, do you know why it would throw off the styling? Tim
... View more
03-05-2014
07:52 AM
|
0
|
0
|
1389
|
|
POST
|
Hey everybody, I am sure there is a very easy solution but for some reason I am stuck! I created a button in my map called "1234 Gus Hipp Blvd", now when I click the button an alert is supposed to pop up stating "1234 Gus Hipp Blvd", but for some reason nothing happens when I click it. This is more an exercise for creating a custom button and then handle a function when the button has been clicked. Here is the code: <!DOCTYPE html> <html> <head> <title>Create a Map</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/dojo/dijit/themes/soria/soria.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css"> <style> html, body, #mapDiv{ padding: 0; margin: 0; height: 100%; } #BasemapToggle { position: absolute; top: 20px; right: 20px; z-index: 50; } #HomeButton { position: absolute; top: 95px; left: 20px; z-index: 50; } #LocateButton { position: absolute; top: 137px; left: 20px; z-index: 50; } #Button1 { position: absolute; top: 180px; left: 20px; z-index: 50; } </style> <script src="http://js.arcgis.com/3.8/"></script> <script> var map; require([ "esri/map", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "dojo/_base/Color", "esri/geometry/Point", "esri/InfoTemplate", "esri/graphic", "dojo/on", "dojo/dom", "esri/dijit/BasemapToggle", "esri/dijit/HomeButton", "esri/dijit/LocateButton", "dijit/registry", "dijit/form/Button", "dojo/domReady!" ], function( Map, SimpleMarkerSymbol, SimpleLineSymbol, Color, Point, InfoTemplate, Graphic, on, dom, BasemapToggle, HomeButton, LocateButton, registry, Button ) { var map; var center = [-80.719892, 28.303518]; var zoom = 13, map = new Map("mapDiv", { center: center, zoom: zoom, basemap: "topo" }); on(map, "load", addGraphic); var storepoint = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([0,255,0,0.25]), 1), new Color([255,0,0]) ) function addGraphic(){ var singlePoint1 = new Point([-80.719892, 28.303518]) var singlePoint2 = new Point([-80.694706, 28.352613]) var attr1 = {"Xcoord":singlePoint1.x,"Ycoord":singlePoint1.y}; var attr2 = {"Xcoord":singlePoint2.x,"Ycoord":singlePoint2.y}; var infoTemplate1 = new InfoTemplate("Accident #1", "<br>1234 Gus Hipp Blvd </br><br> </br><a href='https://www.google.com/maps/dir//Gus+Hipp+Blvd,+Rockledge,+FL+32955/@28.3043848,-80.7134764,17z/data=!4m13!1m4!3m3!1s0x88de03d3d113bf6b:0xbeaf353225652c40!2sGus+Hipp+Blvd!3b1!4m7!1m0!1m5!1m1!1s0x88de03d3d113bf6b:0xbeaf353225652c40!2m2!1d-80.714099!2d28.3041225?hl=en'>Get Directions</a> <br/>"); var infoTemplate2 = new InfoTemplate("Accident #2", "<br>1234 Gus Hipp Blvd </br><br> </br><a href='https://www.google.com/maps/dir//Gus+Hipp+Blvd,+Rockledge,+FL+32955/@28.3043848,-80.7134764,17z/data=!4m13!1m4!3m3!1s0x88de03d3d113bf6b:0xbeaf353225652c40!2sGus+Hipp+Blvd!3b1!4m7!1m0!1m5!1m1!1s0x88de03d3d113bf6b:0xbeaf353225652c40!2m2!1d-80.714099!2d28.3041225?hl=en'>Get Directions</a> <br/>"); var store1 = new Graphic(singlePoint1,storepoint,attr1,infoTemplate1); var store2 = new Graphic(singlePoint2,storepoint,attr2,infoTemplate2); map.graphics.add(store1); map.graphics.add(store2); featureArray = []; featureArray.push(store1); map.infoWindow.setFeatures(featureArray); map.infoWindow.show(singlePoint1); // Add a basemap Toggle } var toggle = new BasemapToggle({ map: map, basemap: "satellite" }, "BasemapToggle"); toggle.startup(); // Add home button var home = new HomeButton({ map: map }, "HomeButton"); home.startup(); // Location Button var geoLocate = new LocateButton({ map:map }, "LocateButton"); geoLocate.startup(); on(registry.byId("Button1"), "click", alertIt ); function alertIt(){ alert("1234 Gus Hipp Blvd"); } }); </script> </head> <body class="soria"> <div id="mapDiv"> <div id="BasemapToggle"></div> <div id="HomeButton"></div> <div id="LocateButton"></div> <button id="Button1" data-dojo-type="dijit.form.Button" type="button" data-dojo-attach-point="button">1234 Gus Hipp Blvd</button> </div> </body> </html> Thanks! Tim
... View more
03-05-2014
04:03 AM
|
0
|
5
|
1749
|
|
POST
|
Nan, did you add the following code to your body? <div id="search"></div> and the following code to your style section? #search {
display: block;
position: absolute;
z-index: 2;
top: 20px;
left: 74px;
}
... View more
03-04-2014
09:51 AM
|
0
|
0
|
653
|
|
POST
|
As of now it always points North, might be a good idea though to add that possibility.
... View more
03-04-2014
03:08 AM
|
0
|
1
|
2944
|
| 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
|