|
POST
|
Alex: I think I might be confused as to what you are trying to accomplish. Can you recreate a sample of your issue using jsfiddle.net?
... View more
04-29-2014
02:01 PM
|
0
|
0
|
2115
|
|
POST
|
Unfortunately, this doesn't help because your application is simply too big for me to spend time digging through. I really need you to strip out all the unnecessary code and create a sample that highlights your specific issue using jsfiddle.net. Sometimes, when doing this, the issue presents itself, so I suggest giving it a try! Sorry and thank you!
... View more
04-29-2014
01:52 PM
|
0
|
0
|
3247
|
|
POST
|
In this particular case, you can make your template variable a global and it would work. Scope is a fundamental part of programming. Read this article as soon as you can: http://ryanmorr.com/understanding-scope-and-context-in-javascript/
... View more
04-29-2014
01:30 PM
|
0
|
0
|
1862
|
|
POST
|
Looks like a scope issue. You define the template object in another function, so executeQueryTask() has no access to it.
... View more
04-29-2014
01:17 PM
|
0
|
0
|
1862
|
|
POST
|
I spent some time on this before lunch but did not have much success. Unfortunately, I don't have much working experience with dojox/mobile. I see you are using the event: "onAfterTransitionIn" http://dojotoolkit.org/reference-guide/1.9/dojox/mobile/transition-events.html This is what I would use as well. Going to play with this a bit more.
... View more
04-29-2014
12:33 PM
|
0
|
0
|
811
|
|
POST
|
If you are just changing the extent, no refresh is needed. Make sure you have a direct reference to the map object in your callback. If this doesn't fix the issue, could you create a sample using jsfiddle.net so I can take a look? Thanks!
... View more
04-29-2014
12:29 PM
|
0
|
0
|
2115
|
|
POST
|
Could you recreate the issue using jsfiddle.net so I can take a closer look? Thanks!
... View more
04-29-2014
12:27 PM
|
0
|
0
|
3247
|
|
POST
|
You are trying to add an object that does not exist. You want to add 'polyGraphic' to the map.
map.graphics.add(polyGraphic);
Also, make sure you have access to your map object within that functional scope.
... View more
04-29-2014
12:16 PM
|
0
|
0
|
3247
|
|
POST
|
Hey Alex! The map shouldn't need to be refreshed in normal circumstances. What is your use-case and could you provide a sample using jsfiddle.net? Thanks!
... View more
04-29-2014
12:09 PM
|
0
|
0
|
2115
|
|
POST
|
Hi Hank, That sample is tailored specifically for that type of data. I would use a featureLayer in your case. Pseudo Code Below:
_______
featureLayer = new esri.layers.FeatureLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
visible: true
});
map.addLayer(featureLayer);
_______
dojo.connect(map, "onClick", executeQueryTask);
_______
template = new esri.dijit.PopupTemplate({
title: "The site in {STATE_FIPS}",
mediaInfos: [
{
type: "barchart",
value: {
fields: [
"POP2000", "HOUSEHOLDS"
],
theme: "Julie"
}
}
]
});
_______
function executeQueryTask(evt) {
// not using a query, but you can still use a query if you wish
if(evt.graphic){
evt.graphic.setInfoTemplate(template);
map.infoWindow.setFeatures([ evt.graphic ]);
map.infoWindow.show(evt.graphic.geometry);
}
}
_______
... View more
04-29-2014
11:09 AM
|
0
|
0
|
1862
|
|
POST
|
Jay, I am trying to help you as best I can without actually doing your work for you. Please reread my previous posts to find the answer to your question. What does e.target.innerHTML equal in this last sample?
... View more
04-29-2014
08:45 AM
|
0
|
0
|
2063
|
|
POST
|
Something like: map.infoWindow.setFeatures(result); map.infoWindow.show(center);
... View more
04-29-2014
07:52 AM
|
0
|
0
|
1140
|
|
POST
|
Clicking the image does not work in your sample because you're setting the objectID based on the contents of the cell itself in this line: query.objectIds = [parseInt(e.target.innerHTML)]; You shouldn't be using a query anymore but you will still need the objectID without using e.target.innerHTML. e.target.innerHTML would be your image in this case, not the ID string.
... View more
04-29-2014
07:49 AM
|
0
|
0
|
2063
|
|
POST
|
I thought this was fixed internally so I looked into it. This might actually be related to a bug with the dojo/keys module. No further update but I will try to post again when I do.
... View more
04-28-2014
03:03 PM
|
0
|
0
|
2861
|
|
POST
|
Sorry, but are you actually saying that the measure widget is inaccurate for all other projections? I hope not as this is now in my production system and being used daily. All my mapping is in BNG 27700 John and Jeff said it best. On a related note: there will be some (frequently requested) enhancements to the Measurement Widget in the next major release.
... View more
04-28-2014
02:52 PM
|
0
|
0
|
2829
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-26-2014 09:56 AM | |
| 1 | 09-18-2014 11:50 AM | |
| 1 | 09-19-2014 11:28 AM | |
| 1 | 07-09-2014 01:43 PM | |
| 1 | 07-09-2014 02:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
08-14-2024
05:31 PM
|