|
POST
|
i heartily agree with Ken. if you find it necessary to post a new thread, its also considered good form to supply a link if you have cross posted somewhere else (like your identical thread in GIS SE here.)
... View more
09-12-2013
07:16 AM
|
0
|
0
|
832
|
|
POST
|
i wasn't suggesting that you ditch the geocoder widget entirely, just use the same approach demonstrated in the callback of another sample which zooms to a predefined scale level 'manually'. that being said, you should be able to work with the second sample by mapping the value in the textbox to the actual parameter your own locator is expecting. "Street": dom.byId("address").value
... View more
09-10-2013
10:16 AM
|
0
|
0
|
2368
|
|
POST
|
yeah, what i said in my last post is definitely true. what exactly are you trying to accomplish? do you just want people to be able to click on your building footprints and see a popup? if so, the identifyTask is unnecessary. you can just move your featureLayer constructor and associated code to make sure it happens when the map is loading. afterwards, since the featureLayer already ensures that graphics are drawn on the client, the popups should appear automatically when you click on features from that layer.
... View more
09-10-2013
09:30 AM
|
0
|
0
|
2304
|
|
POST
|
our own geocoding service returns an "extent" along with the candidate point geometry. if your own service does not, it would probably be easiest to call map.centerAndZoom() like in this sample.
... View more
09-10-2013
08:12 AM
|
0
|
0
|
2368
|
|
POST
|
i think the problem here is that you define a popup template for your feature layer, but then make a call directly to the generic map.infoWindow to display at the location defined by your event handler mapPoint. perhaps you might try setting your popup template directly in the map constructor instead of the the feature layer constructor? if you have trouble and are willing to share an entire simplified application pointing at public services, id be happy to take a look.
... View more
09-10-2013
08:08 AM
|
0
|
0
|
2304
|
|
POST
|
i had to get some help from the awesome @MattDriscoll on this tricky (and interesting) question. it is possible to dig out your request parameters from the dojo.Deferred returned by the method (rather than relying on the response object which filters out just results). this is true not just for .addressToLocations(), but all asynchronous requests built upon the more generic esri.request().
var promise = locator.addressToLocations(options);
promise.then(function(response) {
console.log(promise._pendingDfd.ioArgs.args.content.SingleLine + ' wasnt a cool address.');
});
... View more
09-09-2013
09:44 AM
|
0
|
0
|
1042
|
|
POST
|
the JS API itself doesn't know anything about web.configs. individual application developers can choose to write apps that pull configuration input from external files or information pulled out of the Url itself, or they can hardcode all logic and resources directly inside the application source.
... View more
09-06-2013
02:02 PM
|
0
|
0
|
406
|
|
POST
|
your geocoding service is definitely able to return candidates with web mercator coordinates. i was able to get your locator returning results instead of errors by telling the geocoder object constructor that the name of your single line input parameter field is "Street" instead of "Single Line Input".
var myGeocoders = [{
url: locatorUrl,
name: "Meriden",
//if your locator uses a single line input field name other than 'Single Line Input',
//tell the widget how to make the appropriate request
singleLineFieldName: "Street"
}];
geocoder = new Geocoder({
map: map,
autocomplete: true,
arcgisGeocoder: false,
geocoders: myGeocoders,
value: "Main St."
},"search");
check out this forum thread for more info.
... View more
09-06-2013
01:33 PM
|
0
|
0
|
2368
|
|
POST
|
steven, welcome to the Esri forums! perhaps i'm missing something, but i don't see anything in your identifyTask callback for handling attachments. have you considered using the map popup widget in your application? it exposes a fairly straightforward technique to "turn on" the display of attachments.
... View more
09-06-2013
01:21 PM
|
0
|
0
|
2304
|
|
POST
|
if you want to enable users to access secure services without signing in, one valid approach is to use a proxy to hide the credentials or token.
... View more
09-04-2013
02:43 PM
|
0
|
0
|
1514
|
|
POST
|
cross posted at gis-SE http://gis.stackexchange.com/questions/70354/loading-custom-dojo-and-esri/70450?noredirect=1#comment96095_70450
... View more
09-04-2013
07:28 AM
|
0
|
0
|
494
|
|
POST
|
Determining limits for map graphics https://developers.arcgis.com/en/javascript/jshelp/limits_for_graphics.html Feature layer best practices https://developers.arcgis.com/en/javascript/jshelp/best_practices_feature_layers.html Working with a feature layer in 'selection only' mode and displaying same data as an ArcGISDynamicMapServiceLayer https://developers.arcgis.com/en/javascript/jssamples/ed_attribute_inspector.html
... View more
09-04-2013
07:26 AM
|
0
|
0
|
859
|
|
POST
|
i think blord-castillo's answer to your post on gis-SE is probably on the right track. even if you only have 220 features, if they are vertex dense (particularly since they represent entire countries) and you use 'maxAllowableOffset:0', which inhibits the API from requesting simplified geometries, performance can be comprimised.
... View more
09-03-2013
08:10 AM
|
0
|
0
|
841
|
|
POST
|
vinay is not actually correct here. at ArcGIS Server 10.1, it is possible to publish a dynamic layers capable map service which allows you to manipulate the renderer for individual layers from the client when asking for a dynamic map service tile to be drawn. see this sample and the api reference for more information
... View more
09-03-2013
07:43 AM
|
0
|
0
|
1302
|
|
POST
|
one common cause of blurry PrintTask output is the unintended scale shift that can occur when you prioritize capturing the exact extent from the current application. in order to preserve map scale instead (so that a cached scale level will be used), make sure to set PrintTemplate.preserveScale = true
... View more
09-03-2013
07:39 AM
|
1
|
0
|
757
|
| 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
|