POST
|
//Stuk code voor invoegen infobox Sleutelbuizen var infoWindowLite = new esri.dijit.InfoWindowLite(null, dojo.create("div", null, map.root)); infoWindowLite.startup(); map.setInfoWindow(infoWindowLite); var template = new esri.InfoTemplate(); template.setTitle("<b>Sleutelbuis</b>"); template.setContent("Map:${Map}"); //voegt de sleutelbuizen toe aan de laag var featureLayer = new esri.layers.FeatureLayer("http://server", { mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate:template, outFields: ["Map"] }); map.addLayer(featureLayer); map.infoWindow.resize(200, 200); Is it possible to make a local url to a path on my pc? {map} stands for the path the file is in. For example C:/documents For example (offcourse this doesnt work): template.setContent("Map:<a href="${Map}">");
... View more
07-24-2013
05:03 AM
|
0
|
1
|
2932
|
POST
|
I'm using the python example named on http://resources.arcgis.com/en/help/main/10.1/index.html#/Calculate_Field_examples/005s0000002m000000/ Parser:
Python
Expression:
Reclass(!WELL_YIELD!)
Code Block:
def Reclass(WellYield):
if (WellYield >= 0 and WellYield <= 10):
return 1
elif (WellYield > 10 and WellYield <= 20):
return 2
elif (WellYield > 20 and WellYield <= 30):
return 3
elif (WellYield > 30):
return 4 But i want to use this with 4 categories. So a wellyield with value 8 and category 1 gets a 1 return but a wellyield with value 8 and category 2 gets a 5 return and so on... For example: def Reclass(WellYield):
if (Category = 1 and WellYield >= 0 and WellYield <= 720):
return 10
elif (Category = 1 and WellYield > 721 and WellYield <= 1085):
return 20
elif (Category = 1 and WellYield > 1086 and WellYield <= 1450):
return 30
elif (Category = 1 and WellYield > 1451):
return 40
if (Category = 2 and WellYield >= 0 and WellYield <= 720):
return 20
elif (Category = 2 and WellYield > 721 and WellYield <= 1085):
return 30
elif (Category = 2 and WellYield > 1086 and WellYield <= 1450):
return 40
elif (Category = 2 and WellYield > 1451):
return 50
if (Category = 3 and WellYield >= 0 and WellYield <= 720):
return 30
elif (Category = 3 and WellYield > 721 and WellYield <= 1085):
return 40
elif (Category = 3 and WellYield > 1086 and WellYield <= 1450):
return 50
elif (Category = 3 and WellYield > 1451):
return 60
if (Category = 4 and WellYield >= 0 and WellYield <= 720):
return 40
elif (Category = 4 and WellYield > 721 and WellYield <= 1085):
return 50
elif (Category = 4 and WellYield > 1086 and WellYield <= 1450):
return 60
elif (Category = 4 and WellYield > 1451):
return 70
But of course this one doesnt work. How do i get it to work ? Thx in advance
... View more
12-13-2012
11:22 AM
|
0
|
2
|
513
|
POST
|
I want this also but i cant get it to work. Can someone explain to me step by step how to do this ? Thanks
... View more
08-19-2012
01:14 AM
|
0
|
0
|
331
|
POST
|
A little late but it might help someone. It appears the iOS app can't handle spaces in a file name.
... View more
08-03-2012
11:11 AM
|
0
|
0
|
374
|
POST
|
StevenJohnson, did u find a solution ? I'm having the same problem here and getting nowhere 😞
... View more
08-03-2012
11:08 AM
|
0
|
0
|
1939
|
POST
|
When i configure the pop-up and fill in the URL and the Link (to a pdf or jpg file) the link won't open in ArcGIS for iOS but it works on ArcGIS.com webviewer. What am i doing wrong?
... View more
11-07-2011
08:29 AM
|
0
|
4
|
610
|
Online Status |
Offline
|
Date Last Visited |
12-18-2020
09:59 AM
|