|
POST
|
Ivo and Jeff, see this post. The posted fiddle should help. Tim
... View more
04-29-2014
05:13 AM
|
0
|
0
|
708
|
|
POST
|
Ivo, this thread should help you. Just tell the Legend which layers to show and it won't show the ones you don't want to show. Tim
... View more
04-29-2014
04:19 AM
|
0
|
0
|
708
|
|
POST
|
Luci, this is my full app http://jsfiddle.net/j76Yw/7/ Thanks for taking the time! Tim
... View more
04-28-2014
11:33 AM
|
0
|
0
|
2150
|
|
POST
|
Hey Luci, I tried it this way, but it wouldn't work. 😞 Tim
... View more
04-28-2014
10:41 AM
|
0
|
0
|
2150
|
|
POST
|
This is what I am trying to accomplish http://gis.stackexchange.com/questions/11374/toggle-identify-with-button I am just having a hard time incorporating the answer into the example and trying to translate it into AMD.
... View more
04-28-2014
09:06 AM
|
0
|
0
|
2150
|
|
POST
|
Hey everybody, I am playing around with an onClick listener and I am stuck. I am writing my whole application in AMD style. For an easy example I just wanted an alert message to popup when I click on the map, when a button is toggled to true. When the button is toggled to false I don't want the alert to popup when I click the map. Here is the code I have so far: var identifyListener; function activateIdentify(){ if (dom.byId("identifyDiv").checked) { identifyListener = map.on("click", executeIdentifyTask); } else { identifyListener.remove(); } } function disableIdentify() { dom.byId("identifyDiv").unchecked; identifyListener.remove(); } function executeIdentifyTask(){ alert("Click"); }; And here is the corresponding button: <div id="Button1"><button id="identifyDiv" data-dojo-type="dijit/form/ToggleButton" data-dojo-props="iconClass:'dijitCheckBoxIcon', checked: false" onClick="activateIdentify();" >Identify</button> </div> Thanks for any help! Tim
... View more
04-28-2014
07:31 AM
|
0
|
9
|
2287
|
|
POST
|
Brandon, You would need to store the icons referenced here on a server which can be accessed by your application: .zoominIcon {
background-image: url(images/nav_zoomin.png);
width: 16px;
height: 16px;
}
.zoomoutIcon {
background-image: url(images/nav_zoomout.png);
width: 16px;
height: 16px;
}
.zoomfullextIcon {
background-image: url(images/nav_fullextent.png);
width: 16px;
height: 16px;
}
.zoomprevIcon {
background-image: url(images/nav_previous.png);
width: 16px;
height: 16px;
}
.zoomnextIcon {
background-image: url(images/nav_next.png);
width: 16px;
height: 16px;
}
.panIcon {
background-image: url(images/nav_pan.png);
width: 16px;
height: 16px;
}
.deactivateIcon {
background-image: url(images/nav_decline.png);
width: 16px;
height: 16px;
} When you use just the code, you application is not able to find the icons, thus they don't show up. Hope this helps! Tim
... View more
04-28-2014
04:16 AM
|
0
|
0
|
630
|
|
POST
|
I noticed, sometimes the weekend helps to empty out your head and the answers come on Monday 😉
... View more
04-25-2014
09:33 AM
|
0
|
0
|
1447
|
|
POST
|
Change: orientation: "vertical", to orientation: "horizontal",
... View more
04-25-2014
09:30 AM
|
0
|
0
|
1126
|
|
POST
|
Jay, Maybe this" rel="nofollow" target="_blank">http://dojotoolkit.org/reference-guide/1.9/dojox/layout/ScrollPane.html]this will help? Check out both examples. Tim
... View more
04-25-2014
09:17 AM
|
0
|
0
|
1126
|
|
POST
|
This should help you understand AMD. Once dojo 2.0 hits, legacy will go away.
... View more
04-25-2014
08:59 AM
|
0
|
0
|
1447
|
|
POST
|
Hey Michael, I think you could take a lot of information from this example (i.e. click on a datagrid to zoom, assign a graphic to the result). I would also suggest to write it in AMD, since with the release of dojo 2.0 you would have to re-write your whole application. Hope this is at least a little bit helpful! Tim
... View more
04-25-2014
04:59 AM
|
0
|
0
|
1447
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-25-2013 07:58 AM | |
| 1 | 03-06-2014 06:03 AM | |
| 4 | 12-09-2013 03:25 AM | |
| 1 | 04-16-2014 04:11 AM | |
| 1 | 04-24-2014 10:53 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|