|
POST
|
Hi Christian, I think it might be because the map isn't aware that its container is being resized. You may have to write a custom event listener using the splitter. When the splitter is moved, your event listener would resize the map div (and the map). If you didn't want to use a jQuery module, I know DOJO has splitter functionality built in using ContentPanes and BorderContainers. The map would automatically resize when its ContentPane is resized.
... View more
04-01-2014
08:08 AM
|
0
|
0
|
2056
|
|
POST
|
Hi Matt, It looks like you're using both legacy and AMD style DOJO. You should really try to write everything in AMD style syntax. Aside from that, the issue comes from the following line:
require(["//inetpub/wwwroot/lele3p.layers.ClusterLayer_new"], function(ClusterLayer){ //...
});
This is the incorrect way to load a specific module. DOJO's documentation should have more information on this.
... View more
03-28-2014
01:07 PM
|
0
|
0
|
1920
|
|
POST
|
Jay, instead of making a new thread for every question you have, you should spend some time searching the forum or reading our API. You will find that more often than not, someone else has asked your question and received an answer. var map = new Map("mapDiv", { basemap: "topo", center: [-92.593, 38.5], zoom: 7, showAttribution:false, logo:false }); Hide Logo and Attribution: http://forums.arcgis.com/threads/59229-To-remove-powered-by-esri-logo http://forums.arcgis.com/threads/34111-HOW-TO-Remove-the-esri-logo Replace Logo with Own: http://forums.arcgis.com/threads/41800-Replace-ESRI-logo-with-custom-logo Also, you may want to read this legal documentation to make sure you can freely remove the logo: http://www.esri.com/legal/pdfs/mla_e204_e300/english.pdf
... View more
03-28-2014
10:32 AM
|
0
|
0
|
1777
|
|
POST
|
You could modify the widget to emit an event when a layer is set to visible (and pass along the ID or reference to that layer). Then you could set up a listener for that specific event, and hide all other layers based on that.
... View more
03-26-2014
02:41 PM
|
0
|
0
|
541
|
|
POST
|
You could modify the widget to emit an event when a layer is set to visible (and pass along the ID or reference to that layer). Then you could set up a listener for that specific event, and hide all other layers based on that.
... View more
03-26-2014
02:40 PM
|
0
|
0
|
3072
|
|
POST
|
Dear all, I would like to change the behaviour of the agsjs TOC control so that only one layer is visible at any given time. If user clicks a layer to make it visible then the control should automatically uncheck the previous visible layer if any is visible. Can someone advise on how best to achieve this? Kind regards, You could modify the widget to emit an event when a layer is set to visible (and pass along the ID or reference to that layer). Then you could set up a listener for that specific event, and hide all other layers based on that.
... View more
03-26-2014
02:38 PM
|
0
|
0
|
2588
|
|
POST
|
Hi Josie and welcome to the forums! Here are three samples to get you started: https://developers.arcgis.com/javascript/jssamples/widget_extendInfowindow.html https://developers.arcgis.com/javascript/jssamples/widget_formatInfoWindow.html https://developers.arcgis.com/javascript/jssamples/popup_chart.html If you are still having trouble, please describe in detail what specifically you are having problems with and I would love to help. Thanks!
... View more
03-26-2014
02:32 PM
|
0
|
0
|
755
|
|
POST
|
Hello and welcome to the forums! It sounds like this may be a proxy issue. Have you followed the guide for setting up a valid proxy?
... View more
03-26-2014
02:26 PM
|
0
|
1
|
2661
|
|
POST
|
In this specific situation, you will probably want to use "display: inline-block;" Semi-related to CSS: your map is getting cut off because of the two TitlePanes.
... View more
03-25-2014
01:26 PM
|
0
|
0
|
1260
|
|
POST
|
Have you tried setting the checked property of the checkbox to false after creation? dijit.byId("this_is_the_id_of_your_checkbox").set("checked", false);
... View more
03-25-2014
01:03 PM
|
0
|
0
|
1504
|
|
POST
|
Hi Jay, Can you a minute to recreate a demo of the problem using http://jsfiddle.net/ ? It's much easier to troubleshoot CSS issues with a working sample. Thanks!
... View more
03-25-2014
12:52 PM
|
0
|
0
|
1260
|
|
POST
|
that makes sense....I am just wondering WHY the examples do it both ways. if there is no reason or benefit to use app.map why use it in some examples and not in others. Makes learning a bit more difficult. Whats the purpose of the list???? At least I know now....I thank you for your patience and thoughts. Cheers Hi Jay, There is no 'right' way to do something when it comes to code. There are common methodologies and structural styles that people use when they code. Most of the time, there is never a 'best' way to do something because it comes down to preference. When using a library, there are certain structural or syntax requirements, but the basic rules of Javascript still apply. In this specific example, the 'app' variable is simply an array, declared outside of the DOJO scope, populated with objects that the author wanted to use in his application without having to worry about scope. The author can access their 'app' array and get the contents from anywhere in the script. This is a basic Javascript concept that users need to understand before using any library. If you are looking for a good book on Javascript basics, I suggest picking up "Javascript: The Good Parts" (http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742)
... View more
03-24-2014
12:47 PM
|
0
|
0
|
2175
|
|
POST
|
Hi Jamie and welcome to the forum! What part are you having trouble with? What have you tried? What error messages do you see? Try to be as specific as possible so we can help troubleshoot the issue.
... View more
03-24-2014
09:14 AM
|
0
|
0
|
916
|
|
POST
|
Hey James, It looks like this is an unintended bug. It will be fixed in the next version. In the meantime, here is a work-around using one of the internal ("private") functions. var directions = new Directions({ map: map }, "dir"); directions.on("load", function(){ directions._updateStops(["Knoxville ", "Chattanouga"]).then(function(stops){ console.log("stops object: ", stops); directions.getDirections(); }); }); Note: For this work-around, don't set the 'stops' parameter in the Direction widget constructor. We are using the deferred returned by _updateStops() to confirm that the stops have been properly loaded.
... View more
03-24-2014
09:04 AM
|
0
|
0
|
2089
|
|
POST
|
Hey James, Thanks for that sample. I am also running into an issue getting this to work. I'll find out more and post an update.
... View more
03-21-2014
11:16 AM
|
0
|
0
|
2089
|
| 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
|