|
POST
|
Am I missing something? There's an event you can connect to for mouse out of a map but not mouse enter? Steve
... View more
08-15-2013
02:31 PM
|
0
|
2
|
1149
|
|
POST
|
I was curious so I did some searching in the forum. I found this thread which addresses another issue about webmap layers but I thought that it might be a way to "hook" into the layer you need to hide your popups. Once you have that link to the layer, maybe then you can follow the advice I originally gave? (I'm just grasping at some straws for ya :D) Steve
... View more
08-15-2013
01:36 PM
|
0
|
0
|
2660
|
|
POST
|
Ok, shoot, now I see the problem you have. I don't have any experience working with an imported webmap like you describe so hopefully someone else can chime in!
... View more
08-15-2013
01:22 PM
|
0
|
0
|
2660
|
|
POST
|
I don't know about disabling the popups but you can always add some contingency code to hide the popups when you would want- Add global boolean variable such as "var hidePopup = false;" At the start of when you'd like to not have popups show up, calc the variable to true: 'hidePopup = true;" when the process of hiding the popup is done, just calc the variable back to false Lastly, in your listener function for the features add some code such as: dojo.connect(theFeatureLayer, "onClick", function() {
if (hidePopup) {
map.infoWindow.Hide();
} else {
etc....
}
}); Steve
... View more
08-15-2013
12:44 PM
|
0
|
0
|
2660
|
|
POST
|
In the example you linked, a graphic representation is added to the map which shows the 1 mile buffer. The code "map.graphics.clear" just removes that graphic and doesn't do anything with respect to any selected features. If you selected features from a feature layer, simply call <your layer>.clearSelection()
... View more
08-07-2013
01:40 PM
|
0
|
0
|
1103
|
|
POST
|
Kyle, In Firebug, the call stack is located in the right window pane (it's a tab named "Stack") when you are viewing your javascript. The call stack will only be visible when your code stops (via error or breakpoint/pause). If the print error stops the javascript in its tracks, the stack should be viewable at that time. I've attached a screenshot example of it. In my example, I clicked on a feature in my map and the code running it querying the featureLayer for features so it can populate the information in an infoWindow. The top of this list is the "top" of the stack and shows you what code is currently running. The bottom of this list is where your code initially was kicked off. So, in this example, I clicked on a feature in my map (bottom entry) which, in turn, triggered an onClick event for my featureLayer (second to bottom entry). This, then triggered a query on the features in my featureLayer and those are the two entries at the top. If you don't see it, the best way to tackle the issue is to add a series of lines in your javascript which print text to the console like this: console.log('Passing Checkpoint 01..'); Add these with incremental numbers (01,02,03,etc) throughout your code and pay attention when you run your app. This can help you focus on where in your code that things go south. Through some trial and error, refine the placement of these console messages until you can figure out the line of code that triggers the error. Once you know that, place a breakpoint on the line of code which throws the error. You do this by clicking on the line number (a red circle will appear next to the line number). When you re-run your code, it will stop at the breakpoint and you can examine the call stack as well as the various objects that get created/population by your code. Make sure that objects that should be populated actually are, and with the correct type of object. This may not be possible but, if you have a link to a public facing project (or can post your relevant code), folks here on the forum can look at it and help troubleshoot it with you.
... View more
08-01-2013
11:38 AM
|
0
|
0
|
854
|
|
POST
|
When console errors appear that point to the API itself, the actual issue lies elsewhere. In your browser debugger, examine the Call Stack when the error occurs and follow the stack from the API location back up to the point of your code. From there, look at your line of code and verify that you're passing the correct parameters to an API method (string versus numeric, etc). This is the kind of thing that festers and doesn't appear until some part of the API is expecting a number but gets a string. This is what makes the API look like it has an error. Good luck! Steve
... View more
08-01-2013
07:32 AM
|
0
|
0
|
854
|
|
POST
|
Cool. Glad you got something worked out. Just to be clear, you don't have to specify an ESRI basemap for your map. This example shows how to create a map without a basemap and this thread from the forum talks about using your own tiled map service as a basemap for your map.
... View more
07-31-2013
06:55 AM
|
0
|
0
|
1471
|
|
POST
|
An ArcGIS Online webmap is kind of like a "short cut" in that it is a map that has been created complete with data layers, and basemap. It's just stored in ArcGIS Online. If you define your map as ESRI has done in that particular example, it saves you some coding. That being said, you're not required to set up your map like that. If you look at many of the other samples, the map is created and defined in a more traditional way: var map = new esri.Map("map",{
basemap:"topo",
center:[-122.45,37.75], //long, lat
zoom:13,
sliderStyle:"small"
});
In this case, all you really need is an external internet connection so that you can display the ESRI basemap. All of your data can safely reside within your network. This example shows you the more traditional way of creating a map and then adding your data layers to the map after the map has been created.
... View more
07-30-2013
12:58 PM
|
0
|
0
|
1471
|
|
POST
|
I don't think MediaInfos charts provide the options that you're seeking. I think you'll need to do something along the lines of this sample which exposes the full set of dojo charting options. Steve
... View more
07-30-2013
07:40 AM
|
0
|
0
|
537
|
|
POST
|
You're defining your graphic polylines as having the map's spatial reference. Are you positive that the map's spatial reference is defined as geographic? If you're using ESRI's basemaps, the map's spatial reference is web mercator which means you will need to convert your coordinates from lat/long to web mercator. Steve
... View more
07-29-2013
08:39 AM
|
0
|
0
|
1137
|
|
POST
|
Try adding the period before "action": <style type="text/css"> .action.zoomTo{ display: none; } </style>
... View more
07-26-2013
08:40 AM
|
0
|
0
|
1644
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12 hours ago | |
| 1 | 15 hours ago | |
| 1 | 15 hours ago | |
| 1 | yesterday | |
| 1 | a month ago |