|
POST
|
sorry i should have know that would be confusing. Its from a much larger application basically when you set the attributes on your graphic, you can add attributes. so if attrs.layername="Layer"; var g = new esri.Graphic(f.geometry, sym, attrs); and then you can access it in the popup. It would go right before you set the popup. Is it the result of a query? Seeing some of your code would be more helpful than me posting mine. The code where you do the query and where you set the graphic/popup
... View more
06-02-2014
12:39 PM
|
0
|
0
|
1892
|
|
POST
|
http://stackoverflow.com/questions/23376417/difference-between-registry-byid-and-dom-byid-in-dojo-what-is-the-advantage-of
... View more
06-02-2014
10:06 AM
|
0
|
0
|
1166
|
|
POST
|
on(dom.byId("sel_county"), "onChange", function () { this will never fire dom.byId returns the dom element. THat does not have an onchange method. you want registry.byId to return the dijit. then you can do on(registry.byId("sel_county"), "change", function () {
... View more
06-02-2014
10:05 AM
|
0
|
0
|
1166
|
|
POST
|
my recommendation would be to add the layer info to the attributes of the popup when you set it
var attrs = content;
//do some overrides
var contentreplacement = SearchParams.resultContentOverride(attrs.content, result.layers, f);
attrs.content = contentreplacement;
//add some links
attrs.links = links;
//override title
attrs.titleField = titleField;
//modify content only in result table
var fieldInfos = [];
array.forEach(fieldNames, function(name) {
fieldInfos.push({
fieldName: name, visible: true
});
});
// alert(fieldInfos);
var g = new esri.Graphic(f.geometry, sym, attrs);
g.setInfoTemplate(new esri.dijit.PopupTemplate({
title: title,
fieldInfos: fieldInfos
}));
... View more
06-02-2014
09:41 AM
|
0
|
0
|
1892
|
|
POST
|
have you tried console.dir(g) to output the complete feature? My guess is there is an attribute in there that will provide you with the layername
... View more
06-02-2014
08:50 AM
|
0
|
0
|
1892
|
|
POST
|
I would love to override the dialog with a simple "Please log in" as opposed to the rest endpoint address
... View more
06-02-2014
06:08 AM
|
0
|
0
|
569
|
|
POST
|
you want to use a deferred http://dojotoolkit.org/reference-guide/1.9/dojo/Deferred.html#dojo-deferred So you can do deferred = geocode request deferred.then( if(success){ }else { try geocode # 2 }
... View more
06-02-2014
05:31 AM
|
0
|
0
|
565
|
|
POST
|
stolen from stack overflow <header> is one of several new tags in HTML5 that are supposed to replace <div> for some specific situations. In particular, the "header" part of your page - whatever that is, usually the part that would be wrapped in <div class="header"> - in HTML5 you should use <header> instead. header is not a replacement for head. more info http://diveintohtml5.info/semantics.html
... View more
06-02-2014
05:24 AM
|
0
|
0
|
630
|
|
POST
|
The TOC widget is just a representation of map.layers You can remove and reorder them using map.addLayer, map.reorderLayer, and then calling TOC.refresh() as necessary.
... View more
06-02-2014
05:08 AM
|
0
|
0
|
640
|
|
POST
|
still really struggling here. FeatureLayer has click, dbl-click, mouse over, mouse out, etc.. where are the touch events?
... View more
05-29-2014
07:30 AM
|
0
|
0
|
2903
|
|
POST
|
3857 and 102100 should the same. If this makes your WMS work, then the WMS is set up with 3857 but not 102100. This is just a config issue with the data provider.
... View more
05-29-2014
06:53 AM
|
0
|
0
|
1774
|
|
POST
|
you are calling executeQueryTask(variable) but you have no function executeQueryTask(variable), you only have executeQueryTask() which takes no arguments
... View more
05-28-2014
12:38 PM
|
0
|
0
|
1008
|
|
POST
|
I have seen this error too. Frequently is was from trying to use a map right away, instead of waiting for the onload event to fire
... View more
05-28-2014
09:57 AM
|
0
|
0
|
955
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|