|
POST
|
sorry i didn't catch this thread earlier, because i explained the same thing in this thread. either way, glad you sorted yourself out. 🙂
... View more
08-29-2013
03:36 PM
|
0
|
0
|
1076
|
|
POST
|
glad to hear it jessica. please consider marking this thread as 'answered'
... View more
08-29-2013
09:07 AM
|
0
|
0
|
476
|
|
POST
|
i reproed this problem and notified the development team. until the problem is resolved, please consider using setPreRequestCallback to add the appropriate parameter immediately before the request is sent. //esri.setRequestPreCallback(myCallbackFunction);
function myCallbackFunction(ioArgs) {
if (ioArgs.url == "http://[server]/ArcGIS/rest/services/[servicename]/MapServer/0/queryRelatedRecords") {
//outSR is the parameter name understood by the service itself. set the wkid as a number
ioArgs.content.outSR = 102100;
}
// don't forget to return ioArgs.
return ioArgs;
} thanks for bringing this issue to our attention.
... View more
08-29-2013
08:57 AM
|
0
|
0
|
681
|
|
POST
|
i decided to write up a fiddle using dojo.require() to help you compare and contrast the differences with our published AMD sample. the live code doesn't work (because you need a proxy to pass the buffer geometry to the spatial query), but it will run on your own machine just fine after you update the proxy reference. when translating between new AMD samples and old dojo.require() code, the biggest thing you have to watch out for is the way you instantiate new objects. AMD gives us the opportunity to create a new variable which acts as a shorthand reference to modules that have been loaded, so migrating the code into an older app requires that you switch back to the full path.
//AMD
var map = new Map(...
var symbol = new SimpleMarkerSymbol(..
//non AMD
map = new esri.Map(...
symbol = new esri.symbol.SimpleMarkerSymbol(...
... View more
08-28-2013
01:38 PM
|
0
|
0
|
2405
|
|
POST
|
you can use the legacy dojo.require() instead even at 3.6. can you post what you've got so far? i'd be happy to take a look.
... View more
08-28-2013
12:59 PM
|
0
|
0
|
2405
|
|
POST
|
if you're not ready to migrate to 3.6, you need to change the following line. dojo.byId("search_input").placeholder = "Search Location.."; heres a working fiddle http://jsfiddle.net/jagravois/6EWV3/1/
... View more
08-27-2013
07:41 AM
|
0
|
0
|
2427
|
|
POST
|
you're using "webmap-toolbar-right" as the div name in your widget constructor and appropriately referring to "webmap-toolbar-right_input" afterward, but the actual div for the page in the code you included is "search" if you refer to the appropriate div consistently throughout, you should see the behavior you want in 3.5 as well.
geocoder = new Geocoder({
map: map,
//this will start working whenever you migrate to 3.6
arcgisGeocoder: {
placeholder:"Search Location..."
}
}, "search");
geocoder.startup();
dojo.byId("search_input").placeholder = "hi avery";
...
<body>
<div id="search"></div>
i'm really fond of the inspector tool in Chrome developer tools. if you click on the magnifying glass and then the text input box, you can see its actual name and the CSS rules that are being applied.
... View more
08-26-2013
12:30 PM
|
0
|
0
|
2427
|
|
POST
|
setting PrintTemplate.showAttribution = false will remove the copyright information from the printout, but be warned that data vendors don't typically want you distributing prints without this info.
... View more
08-26-2013
07:34 AM
|
0
|
0
|
1216
|
|
POST
|
do you see a request to http://arcgis.com/sharing/rest/content/features/generate? is it using your proxy? are JSON features included in the response?
... View more
08-26-2013
07:28 AM
|
0
|
0
|
2183
|
|
POST
|
sorry about those links, they are 404ing because of incorrect casing. here are the corrected links, we'll get them updated in the resource center shortly as well. https://developers.arcgis.com/en/javascript/jssamples/data_requestPlainText.html https://developers.arcgis.com/en/javascript/jssamples/data_requestXML.html https://developers.arcgis.com/en/javascript/jssamples/data_requestJson.html https://developers.arcgis.com/en/javascript/jssamples/data_requestJsonp.html
... View more
08-26-2013
07:14 AM
|
0
|
0
|
793
|
|
POST
|
applyEdits() is a featureLayer method. if you just want to delete a graphic, just call map.graphics.remove(evt.graphic) instead
... View more
08-25-2013
08:56 PM
|
0
|
0
|
743
|
|
POST
|
you could achieve this the following way: 1. first add a dom node in the <body> of your html for your new button <button id="buffer">Buffer</button> 2. next, add a reference to the dojo module 'on' in the require section of your code and make sure to add a corresponding variable below so that you can reference the module from your code "esri/config", "dojo/_base/Color", "dojo/dom", "dojo/on", "dojo/domReady" ... esriConfig, Color, dom, on 3. look for the map click event handler code and place the existing code inside a new event handler to make sure nothing is wired up until your button is clicked on(dom.byId("buffer"), "click", function () { myMapClick = map.on("click", function (evt) { //define input buffer parameters var params = new BufferParameters(); params.geometries = [evt.mapPoint]; params.distances = [1]; params.unit = GeometryService.UNIT_STATUTE_MILE; geometryService.buffer(params); }); }); 4. if you want to disconnect the map click event after every single buffer, call 'myMapClick.remove();' inside the buffer complete event handler geometryService.on("buffer-complete", function(result){ //disconnect map click each time a buffer is completed myMapClick.remove(); check out "Working with events" for more info.
... View more
08-23-2013
03:16 PM
|
0
|
0
|
2405
|
|
POST
|
first, you'll need to find some appropriate data and publish a service in ArcGIS Server similar to this one. afterward you can either work with QueryTask or a FeatureLayer to interact with the service from a JavaScript application.
... View more
08-23-2013
12:55 PM
|
0
|
0
|
420
|
|
POST
|
as an alternative, you could also dig into the object after its been instantiated and modify the relevant internal property to workaround the problem. var locator = new VEGeocoder({bingMapsKey: 'yourkeyhere'});
locator._url.path = locator._url.path.replace("http", "https");
... View more
08-23-2013
11:01 AM
|
0
|
0
|
1989
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|