POST
|
In the ESRI example they use an infoWindow. You can just add it like this: geocoder.on("select", showLocation); function showLocation(evt) { map.graphics.clear(); var point = evt.result.feature.geometry; var symbol = new SimpleMarkerSymbol().setStyle( SimpleMarkerSymbol.STYLE_SQUARE).setColor( new Color([255,0,0,0.5]) ); var graphic = new Graphic(point, symbol); map.graphics.add(graphic); map.infoWindow.setTitle("Search Result"); map.infoWindow.setContent(geocoder.results[0].feature.attributes.score+",<br><h3>Some other Fields</h3>"); map.infoWindow.show(evt.result.feature.geometry); } Here is the full code of an exmaple modified from esri
... View more
05-08-2015
11:18 AM
|
0
|
0
|
1285
|
POST
|
You are doing it right. You should be able to get the fields using geocoder.results[0].feature.attributes.NAMEOFATTRIBUTEYOUWANT results is an array so you can loop through it.
... View more
05-08-2015
10:12 AM
|
1
|
2
|
1285
|
POST
|
Paste a copt of the console.log in here. I bet it has to do with states[0].fields or something in the object.
... View more
04-28-2015
03:45 PM
|
0
|
3
|
1351
|
POST
|
I do not think it really depends on Portal or AGOL. It does in that you need an account and create a blank application to get a token, but other than that, if you use the developer version and export the code to your server, the only thing it will grab from AGOL is a basemap. If you hosted all the layers, etc. I don't think you would even use many credits - if any at all. From a user POV, I wouldn't need to login to anything if you make it public and I would hit your server and your application and know nothing of AGOL or your organization account/portal.
... View more
04-28-2015
02:28 PM
|
1
|
0
|
1156
|
POST
|
Could you use websockets and on each 10% completed, they server uses socket.send("x%") to send the percent completed. the client has a socket onmessage and displays the message (evt.data) alerting the user to how much is complete.
... View more
04-28-2015
02:25 PM
|
0
|
0
|
1799
|
POST
|
Most of ours is in Mercator when it goes out, but if you publish a service in ArcServer it doesn't matter because you can request any spatial reference you want returned in the outSR parameter and send any coordinates in using inSR.
... View more
04-28-2015
02:17 PM
|
1
|
0
|
808
|
POST
|
If the machine that defaults to HTTPS is the one your developing on, probably because you have to login to create the app. If the other machine is a a person looking at it over the web, they use HTTP. My WAB developer version listens on 3345 as http and 3346 as https
... View more
04-28-2015
02:13 PM
|
0
|
1
|
220
|
POST
|
That layer is not a dynamic map service, it is a Tile Service. TiledMapServiceLayer | API Reference | ArcGIS API for JavaScript
... View more
04-28-2015
02:11 PM
|
1
|
1
|
377
|
POST
|
Looks like your portal url is wrong. That is the error I get in the console. Your config has the portal removed.
... View more
04-28-2015
02:06 PM
|
0
|
3
|
491
|
POST
|
Not sure about the JS API, but you can do it using JavaScript and the REST API. I have an example on my blog with code. ESRI Attachments with ArcServer and Javascript | Architecture and Planning
... View more
03-02-2015
03:39 PM
|
2
|
0
|
554
|
POST
|
Python for REST. My blog explains the code in detail here: ESRI REST and Python: pandas.DataFrame | Architecture and Planning import urllib, urllib2 import simplejson param = {‘where':’1=1′,’outFields':’*’,’f':’json’} url = ‘http://coagisweb.cabq.gov/…/APD_Incidents/MapServer/0/query ?’ + urllib.urlencode(param) rawreply = urllib2.urlopen(url).read() reply = simplejson.loads(rawreply) print reply[“features”][0][“attributes”][“date”] print reply[“features”][0][“attributes”][“CVINC_TYPE”]
... View more
02-06-2015
07:12 AM
|
0
|
0
|
524
|
POST
|
I think this is hitting a REST Endpoint so the security is handled by ArcServer.
... View more
02-04-2015
11:54 AM
|
0
|
0
|
370
|
POST
|
My shapefile is in state plane and it converted automatically. If you want to read it back in the original projection, use something like proj4js.
... View more
01-29-2015
12:08 PM
|
0
|
1
|
1567
|
POST
|
Use Leaflet.js map with leaflet.shapefile at calvinmetcalf/leaflet.shapefile · GitHub it requires shapefile JS. Then you create a map as in the code below. In the zip I have 4 shapefiles with points and polygons. And you can use ESRI's leaflet plugin for their other stuff if you want. I am over the ESRI JavaScript API - I hate DOJO. It's like they love huge things like Flex and Silverlight and now DOJO for all the fancy widgets. Pretty over functional. var m = L.map('map').setView([ 35.10418, -106.62987],8); var watercolor = L.tileLayer('http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.jpg',{attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'}).addTo(m); var shpfile = new L.Shapefile('apsschools.zip',{onEachFeature:function(feature, layer) { if (feature.properties) { layer.bindPopup(Object.keys(feature.properties).map(function(k){ return k + ": " + feature.properties ; }).join("<br />"),{maxHeight:200}); } }}); shpfile.addTo(m); shpfile.once("load", function(){ console.log("finished loading shapefile"); });
... View more
01-27-2015
01:06 PM
|
0
|
3
|
1567
|
POST
|
What about ArcWeb AppBuilder Pro Standard and the developer version can be ArcWeb AppBuilder Advanced. We MUST have Arc in front of everything or I will think it is by Bentley or MapInfo.
... View more
01-14-2015
03:33 PM
|
0
|
2
|
372
|
Title | Kudos | Posted |
---|---|---|
1 | 04-28-2015 02:11 PM | |
1 | 05-08-2015 10:12 AM | |
1 | 04-28-2015 02:17 PM | |
1 | 04-28-2015 02:28 PM | |
1 | 12-03-2014 01:13 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|