|
POST
|
Dominik, dieser Artikel sagt das diese Address locators nichtmehr gehosted werden. Deswegen funktioniert der Europa nichtmehr. Hier erklaeren sie wie du den neuen benutzen kannst: ArcGIS Help (10.2, 10.2.1, and 10.2.2) Hoffe das hilft! Tim
... View more
09-24-2014
07:05 AM
|
0
|
14
|
2480
|
|
POST
|
Matt, I think a lot has to do with what you want to do with your application. If it involves a lot of onclick commands or geoprocessing it is a good idea to have everything in your map in the same system. However you are still able to assign spacialReferences to points, polygons and such, if you don;t want to have everything in the same system. Hope this helps! Tim
... View more
09-24-2014
07:03 AM
|
1
|
0
|
2164
|
|
POST
|
Dominik, das hoert sich vielleicht dumm an aber kannst du deinen computer neustarten ? Ich habe das selbe problem when mein Computer zu lange an war. Tim
... View more
09-24-2014
06:45 AM
|
0
|
2
|
2480
|
|
POST
|
Dominik, Ist das in ArcGIS Desktop? Woher hast du den Address Locator ( ESRI, selbst erstellt). Tim
... View more
09-24-2014
06:19 AM
|
0
|
5
|
2480
|
|
POST
|
What if you change the css of their button to use your image? .LocateButton .zoomLocateButton .LocateButton .zoomLocateButton:hover Would that work?
... View more
09-23-2014
07:50 AM
|
0
|
1
|
2921
|
|
POST
|
Kelly Hutchins I assume this doesn't work because the tooltip is not created in the "mouse-move" function?
... View more
09-23-2014
05:40 AM
|
0
|
3
|
2358
|
|
POST
|
Steven, after your buffering is done just put the following code (should be after the app.map.showZoomSlider(); line):
handler = map.on("click", executeIdentifyTask);
this will reconnect the handler. Hope this helps! Tim
... View more
09-22-2014
01:20 PM
|
0
|
1
|
1313
|
|
POST
|
Thanks for the reply Kelly, when I try that it doesn't work. However it works when I update the innerHTML in a div that I placed into a pane.
linelenMouseEvt = map.on("mouse-move", function (evt) {
if (clickedPointsArr.length > 0) {
distParams = new DistanceParameters();
var mp = evt.mapPoint;
distParams.distanceUnit = geometryService.UNIT_FOOT;
distParams.geometry1 = clickedPointsArr[clickedPointsArr.length - 1];
distParams.geometry2 = mp;
distParams.geodesic = true;
geometryService.distance(distParams, function (distance) {
lastdrawnsegmentlength = distance;
totalsegmentlength1 = previousSegmentLength;
totalsegmentlength = totalsegmentlength1 + lastdrawnsegmentlength;
totalLength = parseFloat(totalsegmentlength).toFixed(2);
console.log(totalLength);
dojo.byId("current").innerHTML = totalLength; // works here
esri.bundle.toolbars.draw.resume = totalLength; // doesn't work here
});
}
});
Once I finish my first drawing, the last number shows up in the esri.bundle.toolbars.draw.resume tooltip box, once I start drawing the second line. Tim
... View more
09-22-2014
12:13 PM
|
0
|
0
|
2358
|
|
POST
|
Hey everybody, I am trying to dynamically change the draw tooltips. I know if I just want to change the text one time I can access it by using i.e.
esri.bundle.toolbars.draw.resume = "New text here";
But what If I want to change the innerHTML constantly during a mouse-move event? Would I have to access it like this?
dojo.byId ("whatever the id of the draw tool tooltip is for resume").innerHTML = evt.x;
I am having a hard time finding the Id. Or is there a different way to do this? Thanks! Tim
... View more
09-22-2014
08:12 AM
|
0
|
6
|
4224
|
|
POST
|
Thanks for all the help! Btw I like the LP's in your picture Time to fire up some Champion Sound!
... View more
09-19-2014
12:21 PM
|
0
|
0
|
2756
|
|
POST
|
Hey Jonathan Uihlein, thanks for the help, especially for giving me the heads-up about the future changes. After using the logic you have suggested I didn't need the if/else statement. I just wanted to make sure I understood you. Once I use the delete button to get rid of the currently selected graphic and afterwards delete another graphic, by using the delete button, I will only be able to redo the latest deleted graphic, since my delete button would trigger the add() method and therefor remove the redo functionality of the first deleted graphic, correct? Sorry I'm not very advanced in javascript, that's why it takes me a little longer! I hope this sentence makes sense. Here is the latest code: Advanced Draw - JSFiddle Again thanks for the help!!! Tim
... View more
09-19-2014
12:12 PM
|
0
|
2
|
2756
|
|
POST
|
Hey Jonathan Uihlein , I needed to redo the code, which now works if I delete 1 graphic in the middle of my other graphics, but if I delete another graphic straight after it will only redo the latest deleted graphic. I assume this happens because the redo stack gets cleared whenever you use the add() method. Here is my code:
var MenuDelete = new MenuItem({
label: "Delete",
onClick: function () {
if (undoManager.length < "2") {
var operation = new CustomOperation.Add({
graphicsLayer: map.graphics,
addedGraphic: selected
});
undoManager.add(operation);
undoManager.undo();
undoManager.remove(0);
} else {
var operation = new CustomOperation.Add({
graphicsLayer: map.graphics,
addedGraphic: selected
});
undoManager.add(operation);
undoManager.remove(curcount);
undoManager.undo();
}
}
});
Here is the full code: Advanced Draw - JSFiddle Any help is appreciated! Tim
... View more
09-19-2014
07:14 AM
|
0
|
4
|
2756
|
|
POST
|
Yes you can use it as a parameter in a GeometryService, to get for example the lines length: geometryservice-amd | API Reference | ArcGIS API for JavaScript Or use editing in the API: Edit rivers and waterbodies
... View more
09-18-2014
12:32 PM
|
1
|
0
|
1210
|
|
POST
|
Hey Jonathan, I eventually figured it out and what you described is what I ended up doing Here is the code I used in my delete button:
var MenuDelete = new MenuItem({
label: "Delete",
onClick: function () {
var operation = new CustomOperation.Add({
graphicsLayer: map.graphics,
addedGraphic: selected
});
undoManager.add(operation);
undoManager.undo();
undoManager.remove(curcount);
}
});
"selected" is the currently selected graphic and "curcount" is the position of the currently selected graphic in my operation. It seems to be working without flickering. http://jsfiddle.net/timw1984/4p7d241v/embedded/result/ Thanks! Tim
... View more
09-18-2014
12:11 PM
|
0
|
0
|
2756
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2015 06:58 AM | |
| 1 | 05-04-2016 07:27 AM | |
| 1 | 07-06-2017 08:12 AM | |
| 1 | 10-26-2015 11:51 AM | |
| 1 | 12-12-2014 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|