POST
|
OK. So now I'm trying to find a javascript example of how to wire up the measure-end event. Can you point me to one?
... View more
05-15-2017
03:36 PM
|
0
|
2
|
543
|
POST
|
I was thinking something along those lines, but wanted to make sure I wasn't overlooking something.
... View more
05-12-2017
01:13 PM
|
0
|
0
|
543
|
POST
|
I have a requirement from the customer to persist measurements made by the measurement tool i.e. have multiple measurement lines on the map simultaneously and be able to save these between sessions. I checked out the documentation links below but haven't been able to see how this could be done. It doesn't appear that the measurement tool has a layer associated with it, but maybe I'm missing it. Is there a way to do what I'm thinking about - even if I have to kludge my way into it somehow?
... View more
05-12-2017
12:11 PM
|
0
|
5
|
987
|
POST
|
OK. Looks like I'll have to rethink this and consult with the senior dev on it. This isn't really my project - I'm just helping out with it. Not sure we have the necessary data relationships in the client side data model to perform the querying that we need to do. Have to see. In any case, thanks for your advice on this - at least I know what I'm doing is a dead end.
... View more
03-21-2017
08:10 AM
|
0
|
0
|
415
|
POST
|
So I'm guessing from what you've said that there's no way to use the envelope point and angle on the client side to set the extent?
... View more
03-20-2017
05:42 PM
|
0
|
2
|
415
|
POST
|
Got a problem. I have an asp.net mvc app where I need to display a map zoomed to the extent of a number of features. So what I did was union all the features together using DbGeometry on the server side, and then passed the envelope object to the client as a WKT and use that to compute the map extent as shown below: require(["dojo/parser", "dijit/layout/TabContainer", "dijit/layout/ContentPane"]); var mapArgs = { sliderStyle: "small", sliderPosition: "top-right", basemap: "topo" } //get the default extent, if specified var parser = new geometryWktParser(); var defaultBounds = parser.loadPolygonGeographic('@Model.qdArcsExtent'); mapArgs.extent = defaultBounds.getExtent(); //build the map require(["esri/map", "dojo/domReady!"], function (Map) { map2 = new Map("qdMap", mapArgs); Well, this doesn't seem to work real well. The map extent is either off center from where it should be or not big enough to display all the features - or both. Sometimes it isn't off by much, but other times it's wildly off. So I tried using DbGeography instead of DbGeometry, but DbGeography doesn't have any kind of envelope or extent. So then I tried SqlGeography. SqlGeography has EnvelopeCenter and EnvelopeAngle. How would I use these to compute the map extent on the client side - is it even possible?
... View more
03-20-2017
08:40 AM
|
0
|
4
|
961
|
POST
|
Forgive me, folks - I read the class wrong - it's a DbGeograpy class - not a DbGeometry class. If it had been the latter I could have used the envelope property.
... View more
03-15-2017
04:39 PM
|
0
|
0
|
254
|
POST
|
I have a dbGeometry object in C#.net that is basically a union of several other dbGeometry objects. I need a way to get the extent of this unioned object. Any ideas as to the best way to handle this?
... View more
03-15-2017
02:21 PM
|
0
|
1
|
799
|
POST
|
Opps! nevermind. I discovered that the original code I had copied had a global map variable (eek!). Once I changed that, everything was fine.
... View more
03-14-2017
01:07 PM
|
0
|
0
|
298
|
POST
|
I'm trying to get two maps to work on one page and so far haven't been successful. The best I have been able to obtain is one map having the basemap loaded and the other map having all the layers loaded. I've put unique id's on all the div's associated with the maps. Is there something else that needs to be done to make sure esri can distinguish between them?
... View more
03-14-2017
12:56 PM
|
0
|
1
|
894
|
POST
|
Nice try. I already passed it up to my dev lead - we'll see what he comes up with.
... View more
09-15-2016
01:31 PM
|
0
|
0
|
452
|
POST
|
Alas, no - there's a lot of code before this that loads the base map and all the various feature layers. If you're stumped, then probably what's happening is my dev lead has got something going on that we're not aware of. I think I'll punt this one over to him and see what he comes up with. Thanks again, man - and I'll try to post the working version if we come up with one.
... View more
09-15-2016
01:11 PM
|
0
|
2
|
452
|
POST
|
I appreciate you putting all that effort into it, Robert - it certainly looks better this way - but the layer still doesn't show.
... View more
09-15-2016
12:17 PM
|
0
|
6
|
452
|
Title | Kudos | Posted |
---|---|---|
1 | 12-24-2014 02:22 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|