|
POST
|
Will not. In your case: [HTML]<div type="bc" props="design:'headline', liveSplitters:false"> <div type="cp" props="region:'top'"> header </div> <div type="bc" props="region:'center', design:'sidebar', liveSplitters:true"> <div type="cp" props="region:'left'"> left </div> <div type="tb" props="region:'top', splitter:false"> toolbar </div> <div id="map" type="cp" props="region:'center'"> map </div> </div> </div>[/HTML] (just for structure :))
... View more
05-16-2014
10:39 AM
|
0
|
0
|
1606
|
|
POST
|
I see. You can use a border container as a region (no height or width required). Set the toolbar as the top region and the map as the center region therein.
... View more
05-16-2014
10:20 AM
|
0
|
0
|
1606
|
|
POST
|
Scratch previous. The logo is there but map overflow is hidden. Why put all those extra elements in the map's domNode? They are making the map overflow. The only thing you should have in the map in the home button div.
... View more
05-16-2014
09:57 AM
|
0
|
0
|
1606
|
|
POST
|
That might not be 100% true but it has something to do all the sections in the map domNode.
... View more
05-16-2014
09:49 AM
|
0
|
0
|
1606
|
|
POST
|
You are using a <section> for your map and not a <div>.
... View more
05-16-2014
09:41 AM
|
0
|
0
|
1606
|
|
POST
|
Are you using map.graphics for your results? If so, does map.graphics.spatialReference = 4326? How are you setting the sr of the map? With an extent, center & zoom, or the first layer added?
... View more
05-16-2014
09:34 AM
|
0
|
0
|
1702
|
|
POST
|
To programmatically create a tp, create a div for the tp: [HTML]<div style="position:absolute; right:20px; top:10px; z-Index:999;"> <div id="myTitlePane"></div> </div>[/HTML] The second argument in the constructor is simply the id (srcNodeRef) to create the tp. var tp1 = new dijit.TitlePane({
//options
}, 'myTitlePane');
//always call startup
tp1.startup(); dojo tp docs: http://dojotoolkit.org/reference-guide/1.9/dijit/TitlePane.html http://dojotoolkit.org/api/?qs=1.9/dijit/TitlePane
... View more
05-08-2014
06:41 AM
|
0
|
0
|
351
|
|
POST
|
Jeff, That shift might be due to service being published in different sr than data. Ben
... View more
05-08-2014
05:42 AM
|
0
|
0
|
1540
|
|
POST
|
I was suggesting using a title pane in that way for the layer slider.
... View more
05-08-2014
05:35 AM
|
0
|
0
|
1609
|
|
POST
|
Looks good Jeff. A few things: Consider a loading screen. It took me a minute to find identify. Search By Location --> Identify By Location ??? There is a slight northwesterly shift of the result geometry and the layer geometry. The xls export is great. Maybe csv too? Have the result link icons vertical with text too. Helpful for mobile and to know what it is. Identify conflicts with draw once the first id has been completed. Draw rectangle doesn't work. Freezes map until a different draw tool is selected. I like your county basemap. Have it selected by default? Cheers, Ben
... View more
05-07-2014
01:57 PM
|
0
|
0
|
1540
|
|
POST
|
First: I suggest converting to AMD style coding. Do it now while you're just getting started instead of learning legacy. I would just place the title pane with the slider in the map like this example. I don't know what the entire app looks like or functions. But it seems like having easy access to the slider whether the left pane is open or not might be easier. It certainly would be a lot simpler than dealing with a floating pane or something else dependent on the visibility of the left pane.
... View more
05-07-2014
12:52 PM
|
0
|
0
|
1609
|
|
POST
|
I can't quite visualize what's going on with the left pane. Could you post the code for it? Also what does the "layer slider" do? Disclaimer/splash screen: [HTML]<body> <div id="loading" style="z-index:9999;position:absolute;top:0;right:0;bottom:0;left:0;padding:30px;background-color:#FFF;"> <h1>My Map</h1> <h3>Disclaimer</h3> <p>Blah blah blah...</p> <p> <button id="accept-btn">Accept</button> </p> </div> <!-- app markup --> </body>[/HTML] on.once(dom.byId('accept-btn'), 'click', function () {
var fadeOut = baseFx.fadeOut({
node: 'loading',
duration: 1000
});
on(fadeOut, 'End', function () {
domConst.destroy('loading');
});
fadeOut.play();
}); Basic example, but a jumping off point. requires: dojo/on, dojo/dom, dojo/dom-construct and dojo/_base/fx
... View more
05-07-2014
11:53 AM
|
0
|
0
|
1609
|
|
POST
|
You can have as many floating panes as you want at any time. Are you using dojox/layout/FloatingPane or something else? So you want to completely replace the left sliding pane with a floating pane? Or do you want to dock/undock the layer controls between the left pane and a floating pane? I'm not sure a floating pane is the best option for a disclaimer. Why not an absolute positioned div over the entire window or a dialog. I prefer the former. Simple html and css with a single click event. Add in dojo/_base/fx to fade it out and then destroy the dom node. Dialog works too. With a dialog you need to override the _onKey event to prevent user from escaping out of the dialog and hide the close button. Still pretty simple.
... View more
05-07-2014
11:06 AM
|
0
|
0
|
1609
|
|
POST
|
The legend widget doesn't like token appended service urls. Once constructed the layer doesn't need the token query string anymore. Simply set the layer's url property w/o the token. var layer = new Dynamic('http://some_url/some_service?token=some_token', { //options }); layer.url = 'http://some_url/some_service'; map.addLayer(layer);
... View more
05-05-2014
07:56 AM
|
0
|
0
|
1452
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-18-2013 06:56 AM | |
| 1 | 06-30-2015 09:17 AM | |
| 1 | 10-12-2013 07:14 AM | |
| 1 | 02-05-2014 11:05 AM | |
| 1 | 05-28-2015 11:41 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|