|
POST
|
I just want to nudge the map up a tiny bit. I'll do it manually by adjusting the map.extent object - but it'd be a nice enhancement request to be able to specify the amount of the pan. Cheers, Steve
... View more
02-15-2012
11:07 PM
|
0
|
0
|
1111
|
|
POST
|
The map object has a panUp method, which doesn't accept any arguments.
function north(){
myMap.panUp();
} How does it decide how much to pan, and can it be adjusted (without resorting to hacks)? panUp(100) doesn't seem to have any effect. Thanks, Steve
... View more
02-15-2012
07:25 PM
|
0
|
6
|
1607
|
|
POST
|
Hi Emily, dojo.forEach(map.graphics.graphics,function(featureLayer){
if((featureLayer.attributes) && featureLayer.attributes.doc.id === clickedTaxLotId){
selectedTaxLot = featureLayer;
I think you should be working with features, not a feature layer, in the highlighted sections. Can you provide a link to your site? Cheers, Steve
... View more
02-15-2012
01:52 PM
|
0
|
0
|
2014
|
|
POST
|
Converting textual information to lat/long is known as geocoding, and requires an address locator service. See the help topic on geocoding for further information. I'm not sure where you can obtain an address locator which contains township, range and section, but other people might know. Google's address geocoder might handle it - try the instructions here to see whether it works.
... View more
02-12-2012
12:36 PM
|
0
|
0
|
1280
|
|
POST
|
Hi Kunal, Thanks for the additional information. The link you sent shows that you have access to ArcGIS Server, so a suggestion is to start with the Feature Layer samples from the Samples page, for example the Popup or On Demand Mode samples, both of which contain examples of popups containing information. Steve
... View more
02-12-2012
12:05 PM
|
0
|
0
|
2242
|
|
POST
|
I don't fully understand what you mean with regards to SQL Server, but assuming that you're able to retrieve the point information (perhaps in JSON format) you could create a Feature Layer, which would allow you to specify the popup using setInfoTemplate. See documentation here.
... View more
02-10-2012
11:21 AM
|
0
|
0
|
2242
|
|
POST
|
Hi Lisa, Firstly, congratulations on your application - it looks great, and obviously represents a lot of work. I like it overall - here are some suggested changes. - The Zoom In and Pan tools are redundant - the map itself can handle these natively, so you could remove them to simplify the UI. It can confuse novice users when the map behaves differently depending on which tool is active - Presumably your site is aimed at non-expert users, so I would remove a lot of the Advanced functionality like "toggle off wilderness names, toggle off popups", etc. Decide what will work for most of the people, most of the time, and set that as the default. - Could you combine Zoom to a Wilderness and Search, since they're basically both navigation aids? If you used type-ahead (like in a Google search) you could prompt the user as they started typing. - Clicking outside of a wilderness shows a warning message. If you used Feature Layers, you could listen for mouseOver events and highlight the boundary, showing people that something will happen if they click on that feature. - The XY coordinates in the lower left are a bit of a distraction - do your (non-expert) users really care? What about showing the coordinates in the popup on mouse-click? - I'm pretty sure it's illegal (or at least frowned upon) to cover the Bing logo 🙂 Congrats again, Steve
... View more
02-09-2012
12:46 PM
|
0
|
0
|
2276
|
|
POST
|
There's a group at http://geoux.org who would also be able to provide valuable feedback on the design.
... View more
02-09-2012
12:21 PM
|
0
|
0
|
2276
|
|
POST
|
Vandalism will display in IE and Chrome, but not Firefox. Any ideas??? I'm actually finding that Vandalism is showing in Firefox, but Crash isn't showing. I think it's something to do with the complicated logic which is used in the script at http://maps.co.scott.mn.us/IncidentViewer/Javascript/Generic.js
for (var i = 0, il = inputs.length; i < il; i++) {
if (inputs.checked) {
visible.push(inputs.id);
if (i == 11) { //manually turn on hidden crash layers
for (var j = 12, jEnd = 17; j <= jEnd; j++) {
visible.push(inputs .id);
}
}
}
}
This seems to be trying to display multiple Crash layers from http://maps.co.scott.mn.us/ArcGIS/rest/services/InternalServices/SC_AllCrime_UTM/MapServer and presumably there's some error in this logic. I'd start debugging in this region of the script to see if you can pin down the problem. Cheers, Steve PS you're using a very old version of the JS API - it might be worth testing on a newer version to see if that resolves the issue
... View more
02-09-2012
12:12 PM
|
0
|
0
|
1147
|
|
POST
|
Thanks a lot! 🙂 No problems. Another (simpler) option may be to make a graphic which only has a border (no fill). That way, (I think) the onMouseOver event will continue to fire on the underlying dataset.
... View more
02-08-2012
01:24 PM
|
0
|
0
|
1133
|
|
POST
|
How can I retrieve the attributes in the query/find, to attach them to the new graphic? In the Query, you can specify outFields, which are the fields which are returned in the query results. Then you can use graphic.attributes = query.attributes Cheers, Steve
... View more
02-08-2012
01:12 PM
|
0
|
0
|
1133
|
|
POST
|
For 1, do you mean that you're listening to the onMouseMove event on a feature layer or graphic layer? Ithink the problem is that the graphic highlight which is returned by the query/find draws as the top layer on the map, so the onMouseMove event doesn't react (since the mouse is over the new graphic, rather than the layer underneath. You could retrieve attributes in the query/find, attach them to the new graphic, and listen to the onMouseMove event on this new graphic. Is that what you mean? Cheers, Steve
... View more
02-08-2012
12:19 PM
|
0
|
0
|
1133
|
|
POST
|
Hi Emily, Yes, you can use a data grid with a feature layer. See the section which starts: var clickedTaxLotId = grid4.getItem(evt.rowIndex).POINT_NAME;
var selectedTaxLot;
dojo.forEach(map.graphics.graphics,function(graphic){
if((graphic.attributes) && graphic.attributes.POINT_NAME === clickedTaxLotId){
This specifies that each graphic in the map is iterated across - if the graphic's name matches the text value which was clicked in the data grid, the map will zoom to that graphic. You could do the same thing with the feature layer. Another option could be to reverse the logic and run a Query, where the Where clause was based on the value that you clicked in the grid, and you would zoom to the extent of the result. Good luck, Steve
... View more
02-06-2012
12:28 PM
|
0
|
0
|
2014
|
| 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
|