|
POST
|
You could create one with javascript (or jQuery to make it a little easier on you). Create a div element, append it to a container you'd like it to appear in, set the css position to fixed, give it some html (which should be just text to display in between the div tags when rendering), give it a really high z-index, apply css to make it look like a tooltip (in terms of size, border, color, etc.) and finally, onclick set the top and left to the mouse position.
... View more
01-15-2016
05:20 AM
|
1
|
1
|
1970
|
|
POST
|
Ok, I misread what you said about being able to select both graphics in the initial post. I guess you could try to have two edit object instances but then the API would probably get all kinds of confused. Let us know how it works out. I'm curious.
... View more
12-31-2015
06:49 AM
|
0
|
0
|
1363
|
|
POST
|
You're a step ahead of me b/c you said you were able to select them both? If you're able to put them both in edit mode, I suppose you could have a go at trying to attaching the mouse event to both graphics. I don't see that working out too well though (but, it could be worth a try). I should say that I do not have any idea if there is some functionality from the API that can accomplish this. What I would do is just select one graphic, and edit one graphic. As you rotate that graphic, programmatically rotate the other graphic. Does that make sense? I want to say that there is some kind of on rotating type event you could piggy back on to change the graphic not in edit mode.
... View more
12-31-2015
06:07 AM
|
1
|
2
|
1363
|
|
POST
|
Do you have a use case for this to better explain it? Are you talking about re-sizing a graphic to the same scale?
... View more
12-31-2015
05:50 AM
|
0
|
4
|
1363
|
|
POST
|
I would use the editToolbar events. For this, probably graphic-move-stop would work well. Try replacing your map.graphics.on with: editToolbar.on('graphic-move-stop', function() { var x = pointGraphic.geometry.x; var y = pointGraphic.geometry.y; });
... View more
12-16-2015
04:35 AM
|
0
|
0
|
1006
|
|
POST
|
Has the map loaded first? You might have to set up a initialization process that waits on things to load in a certain order.
... View more
12-08-2015
08:45 AM
|
2
|
0
|
2559
|
|
POST
|
The difference in min/max is relative to the map scale, and spatial reference. It would have to be a pretty smart checker just to see if a polygon with 1 line should actually be a line. I'll have this issue brought up to someone in Esri.
... View more
12-08-2015
06:02 AM
|
0
|
0
|
1833
|
|
POST
|
Polygon.getExtent().getWidth() is well over 0 and Polygon.getExtent.getHeight() is just over 0. miny and maxy are so close to being the same number, but since they are different, we don't have any 0 values.
... View more
12-08-2015
05:25 AM
|
0
|
2
|
1833
|
|
POST
|
And that's exactly the problem. I am using just lengths for a polyline. If the user intends on using that polygon as a polyline, they won't understand why there is no length. On the back end, I'm using length if the geometry.type is a polyline. And of course, fake polygon or not, the geometry.type is still polygon on this one line 'polygon'.
... View more
12-07-2015
12:44 PM
|
0
|
4
|
1833
|
|
POST
|
I understand that is a requirement to make a polygon, but there is still something to measure in length, right?
... View more
12-07-2015
12:32 PM
|
0
|
7
|
1833
|
|
POST
|
I'm using a GeometryService to measure the length and area of a polygon. Everything is fine unless my polygon is a single line (here me out). I start to draw a polygon by clicking the map then double click the map after just forming a line. There become two line segments and the geometry.ring has 3 coordinates ([-3184781.0569155607,5458796.020593386,1746324.5118164345,4813056.005640387,-3184781.0569155607,5458796.020593386]). The results of areas-and-lengths-complete are that area and length are 0. Area, sure. Makes sense. But length is 0? And yes, I know that no user SHOULD do that. They should just use a polyline if they want a line. But, is this a normal/expected result? Thanks.
... View more
12-07-2015
11:56 AM
|
0
|
11
|
4233
|
|
POST
|
Probably because they are asynchronous calls. You may call them in order of 1, 2, 3, but 2 could return before 1.
... View more
12-07-2015
04:35 AM
|
0
|
0
|
785
|
|
POST
|
Have either of you tried embedding another, lighter, website instead of the map? Maybe try to jam google.com in there to confirm that it's actually the API? I can't remember if this was mentioned.
... View more
12-07-2015
04:32 AM
|
1
|
0
|
1273
|
|
POST
|
Hmm, well what probably happend (not that it's helpful) is that the javascript threw up at that header because of that error and wouldn't continue rendering that bit. Maybe? Maybe, also, the security of that service has changed since you grabbed a screen capture for your presentation? Why I brought up ArcOnline is to just add a layer with that service to see what happens. It could rule out it being an issue with the actual service is all I meant.
... View more
12-02-2015
11:54 AM
|
0
|
0
|
1375
|
|
POST
|
Well, we gave it the ol' college try. I would have definitely have blamed iframes alone. I'm out of ideas but I'm going to still follow this in case I ever need to tackle this.
... View more
12-02-2015
07:04 AM
|
0
|
3
|
1273
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-31-2015 06:07 AM | |
| 1 | 09-25-2015 08:35 AM | |
| 1 | 12-07-2015 04:32 AM | |
| 1 | 11-06-2015 07:47 AM | |
| 1 | 03-28-2016 04:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|