|
POST
|
Hi Miguel, You might need to post this question on the Network Analyst forum. This forum is for people using the ArcGIS Server JavaScript API, and most of us probably don't know much about Network Analyst. Steve
... View more
09-13-2011
08:21 PM
|
0
|
0
|
942
|
|
POST
|
If you are looking to get "stuff nearby" like businesses, etc, from a map click, then that functionality is not available unless you have the "stuff" in your own spatial database. It might be possible to hook into a service like Google Places to retrieve this info (you'd need to look into the Terms of Service to see whether it's allowable to display the results on a non-Google map).
... View more
09-06-2011
03:25 PM
|
0
|
0
|
1311
|
|
POST
|
Matt, As far as I know, you can't do this with a Dynamic layer. Instead, you could add your polygons as a Feature layer. A feature layer can have a renderer, which would allow you to specify your desired class breaks. Steve
... View more
09-04-2011
08:10 PM
|
0
|
0
|
559
|
|
POST
|
Trying to find the correct combination of id/class and CSS attribute is so frustratingly hard. Rick, Have you tried FireFox with the Firebug plugin? The HTML inspector makes this a bit easier, as it will show you which CSS rules are being used for a particular element. Steve
... View more
09-04-2011
05:34 PM
|
0
|
0
|
1253
|
|
POST
|
...searches google maps so that you can, for example, type in a city and it will show you search results. I'd like to do something like this with my prototype by querying or identifying on Bing maps Hi Lisa, The closest equivalent is probably the Bing Geocoder - see documentation here. Does that help? Steve
... View more
09-04-2011
05:31 PM
|
0
|
0
|
1311
|
|
POST
|
Hi Rick, I'm not positive I understand your problem, but if you're trying to hide the Zoom In and Zoom Out arrows at the top and bottom of the Zoom Slider, you could use: .dijitSliderIncrementIconV, .dijitSliderDecrementIconV {
display: none;
} Steve
... View more
09-01-2011
07:05 PM
|
0
|
0
|
1253
|
|
POST
|
I have a ArcGISDynamicMapServiceLayer ...I now want to be able to highlight (set the color) a polygon when it is clicked on. Hi Matthew, You can set a queryTask to run when you click on the map. This will return a result, which you can display as a graphic (code snippet below):
dojo.connect(map, "onClick", executeQueryTask);
function executeQueryTask(evt) {
query.geometry = evt.mapPoint;
queryTask.execute(query, showResults);
}
function showResults(featureSet) {
dojo.forEach(featureSet.features,function(feature){
var graphic = feature;
graphic.setSymbol(symbol);
map.graphics.add(graphic);
});
}
See the sample here for a working version of this. Good luck, Steve
... View more
09-01-2011
06:56 PM
|
0
|
0
|
2265
|
|
POST
|
There is definitely an interaction type issue causing it.... in my attempt to strip the file down to send it the issue disappeared... I have attached the entire code, the loading is at line 859. Michael, Can you outline the steps needed to reproduce the problem using your sample code? The infoWindows are appearing in the correct position for me, as far as I can tell. A suggestion is to load in the layers as Feature Layers. Clicking on a feature would display the popup, and would remove the need to run an Identify task. See this map as an example. The polygons are loaded as a feature layer, and are highlighted on MouseOver. The infoWindow appears when you click on a feature - when you click off a feature, nothing happens. This means that you don't see the "No Information Available" message when no features are found. (If you like, I'd be happy to make a site visit to GBRMPA to assist in-person 🙂 Hope this helps, Steve
... View more
08-28-2011
05:54 PM
|
0
|
0
|
1241
|
|
POST
|
Pat, I haven't been able to get the HTML Popup to work directly. Luckily I'm able to edit the source in ArcMap and add the URL as an attribute. This allows me to workaround the problem, but it would be good to do this directly via the HTML Popup property. Steve
... View more
08-28-2011
05:15 PM
|
0
|
0
|
2274
|
|
POST
|
Hi Michael, It sounds like there's something else going on here, since removing the layers shouldn't have any effect on the infoWindow's position. Sometimes when elements aren't lining up correctly on the map it can be due to a misplaced DIV which is interfering with the map. Are you able to post your code, or a link to your map? Steve
... View more
08-25-2011
09:33 PM
|
0
|
0
|
1241
|
|
POST
|
Your app definitely looks promising. I'll leave it to Derek to comment on the maxAllowableOffset approach. The reason i need to query on the original dataset is the user needs to be hitting the exact feature, any generalization will lead to misinformation. Since you're highlighting the feature, if someone clicks on the boundary of two features (and selects the "wrong" feature) this will be apparent to them, and they can easily click in a new location (to select the "correct" feature). It wouldn't be misinformation since you're making it quite clear which features you're referring to in the chart. Eg, they click within Nebraska when they meant to click within Kansas - this is no big deal since your app highlights Nebraska, and clearly labels it in the chart. So I wouldn't say it was a problem to run the query directly on the generalized feature, if you do decide to go down that route. My two cents's worth, anyway. Cheers, Steve
... View more
08-25-2011
05:16 PM
|
0
|
0
|
2001
|
|
POST
|
Michael, Can you give some sample code to show what you're seeing? This sample seems to show the infoWindow appearing at the top-left of the location clicked. Is this not what you're seeing? What is the infoWindow showing, and how are you opening it? Steve
... View more
08-25-2011
04:14 PM
|
0
|
0
|
1241
|
|
POST
|
Hi Kelly, Note that the expandoPane closes "backwards" when it's placed on the right-hand side - the default ease-in and ease-out method assumes that it's placed on the left-hand side. Any ideas how to resolve that? Not a big deal, but it would make the panel's operation more obvious. Cheers, Steve
... View more
08-25-2011
03:42 PM
|
0
|
0
|
921
|
|
POST
|
You should also ensure that the query/identify only returns the attributes which are required. If you're only using it to highlight, you may not need any attribute at all.
... View more
08-24-2011
06:41 PM
|
0
|
0
|
2001
|
|
POST
|
Hi Johny, It sure is. If you haven't already done so, download Firefox and Firebug (the developer plugin). Open one of the sample maps, open an infoWindow, and use the HTML Inspector within Firebug to see which CSS classes are being used. For example: .infowindow .window .top .right .sprite {
margin-top: 0;
position: absolute;
}
.claro .infowindow .sprite {
background-image: url("../images/claro.infowindow.png");
}
.infowindow .sprite {
height: 1000px;
width: 1000px;
}
.infowindow .window {
color: #000000;
font-family: verdana,sans-serif;
} You'll find a whole host of classes which you can modify to style the infoWindows the way you want them. You can overwrite these classes by including them in your own CSS files / style declarations. Steve
... View more
08-24-2011
03:42 PM
|
0
|
0
|
1637
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2014 08:45 PM | |
| 1 | 03-15-2011 04:23 PM | |
| 1 | 10-18-2019 12:50 AM | |
| 3 | 01-22-2019 02:33 PM | |
| 1 | 09-26-2011 10:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-20-2022
12:19 AM
|