|
POST
|
Thanks Georgie. OnUpdateEnd was added for the v2.2 release - I'd like to think as a result of this forum post 😉
... View more
09-10-2012
08:37 PM
|
0
|
0
|
1467
|
|
POST
|
if i dont enter the search string in upper case it wont return results but will trigger an error. I have almost identical application just different service and it works with lower case without a problem. It's likely that in one service, your values are stored in uppercase while in the other service, they are stored in lowercase. The query honours the case of the input features. To test this, open your query URL in a web browser and append "/query" - this will bring up an interface allowing you to inspect the values of your fields. Eg: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/query For example, this query reveals that the Name field is stored in uppercase: "Name" : "CHINA: YUNNAN PROVINCE; VIETNAM: HANOI" You may be able to handle this in your code by converting the input string and the query to uppercase.
... View more
09-10-2012
03:50 PM
|
0
|
0
|
1022
|
|
POST
|
I'm not sure why you're seeing that problem, but after some experimentation I found that this works:
var basemapLayer = new esri.layers.ArcGISTiledMapServiceLayer(...
var dynamicLayer = new esri.layers.ArcGISDynamicMapServiceLayer(...
var basemapLayer2 = new esri.layers.ArcGISTiledMapServiceLayer(...
var dynamicLayer2 = new esri.layers.ArcGISDynamicMapServiceLayer(...
basicMapObj.addLayers([basemapLayer, dynamicLayer]);
advancedMapObj.addLayers([basemapLayer2, dynamicLayer2]);
ie, create separate instances of the layers in each map. Steve
... View more
09-04-2012
01:21 AM
|
0
|
0
|
2326
|
|
POST
|
I'd start by looking at GeometryService and Geoprocessor. Between one or both of those you should be able to achieve what you need.
... View more
09-03-2012
03:22 PM
|
0
|
0
|
442
|
|
POST
|
Can you post a link to your site, or some sample code?
... View more
09-02-2012
05:37 PM
|
0
|
0
|
512
|
|
POST
|
The iframe ... will effectively act like another 'embedded' browser i.e. everything in the 'external' web page (style, JS etc.) should function as it would if you simply pointed your browser at it. That's a good point - if you only want the data, you may not wish to see the header, page navigation, logos, etc. Another option might be to request access to the raw data used on the embedded website. They must have used some values to derive the image/graph/whatever displayed on their site, so perhaps you can request that and build the image/graph/whatever yourself. Still another option is to reverse-engineer their page to obtain just the component you need. Eg, if the page contains an image sourced from ../data/city_date_time.jpg you may be able to obtain the image directly. Be sure to check their license agreement to verify this is allowed. Good luck, Steve
... View more
09-02-2012
03:43 PM
|
0
|
0
|
655
|
|
POST
|
I promised not to labour the point, but anyway..... I just noticed that another user has run into the same issue: Please help me. The live samples are working when i view it in the browser, but when i copy the code into notepad and run it as a local copy in the browser. The code is not working, nothing is being displayed. I tried to link to a reference showing the need to use a web server - and I still can't find one, aside from this thread. The Getting Started section of the help shows how to create your first application, but doesn't mention setting up a web server. Perhaps you could you add something here with simple instructions on how to set up a web server in Windows, OS and Linux? Cheers, Steve
... View more
08-30-2012
10:47 PM
|
0
|
0
|
3528
|
|
POST
|
the 360K worth of outline data (for this dataset) only gets downloaded once in the browser at map startup An alternative approach could be to generate JSON from the layer, and create your feature layer from the collection of features. Potentially, this could allow you to download the features once only, and store them in memory. You could then slice+dice the features as necessary. Note that I haven't tested this, so it's just a wild suggestion. You'd have to weigh up whether it's worth the complexity. Cheers, Steve
... View more
08-30-2012
10:00 PM
|
0
|
0
|
1391
|
|
POST
|
You could achieve this by inserting an iframe into the contents of the infoWindow.
... View more
08-30-2012
03:17 PM
|
0
|
0
|
655
|
|
POST
|
Would it be an option to have a single map DIV, and hide the other DIVs until you need them? This sounds a whole lot simpler than trying to transfer the state from one DIV to another. Steve
... View more
08-29-2012
09:24 PM
|
0
|
0
|
2326
|
|
POST
|
We are attempting to implement a website based on the Kurogo framework, an open source webapp framework that includes a mapping module which interfaces with ArcGIS map services. Very cool. They provide a demo which uses a nice map of Boston Can you point us to the original demo, too? I can't find it online. Thanks
... View more
08-23-2012
03:52 PM
|
0
|
0
|
1336
|
|
POST
|
the demo runs on our server just fine. When we attempt to re-configure it to use a locally-created map, though, it blows up in the ArcGIS JSAPI code, with "TypeError: json is undefined". Can you strip the example right back so it's just a simple map with a single basemap, and see if that works? Then progressively add features until it breaks. Are you able to share your site's URL? Steve
... View more
08-21-2012
04:59 PM
|
0
|
0
|
3269
|
|
POST
|
Hi Dorothea, It's really hard (for me, at least!) to debug this properly without being able to run it. Is there any chance you can put this on a public site so we can test it? However, if I use the identify "SELECT" button after zooming to a grid row I can no longer zoom to another grid row and the "zoom in and out" functions suffer. It sounds like there's a problem with the event listeners, which are getting out of sync or otherwise failing. This would (probably) be easier to debug by stepping through it. If you haven't already done so, try installing Firefox and Firebug, which will allow you to step through your code to ascertain where the problem lies. Try putting a breakpoint inside the routine you suspect is causing the problem, and step through it to see which line throws the error. I know I have a problem with the
//identify portion
function onDrawEnd(extent){
toolBar.deactivate();
executeIdentifyTask(extent);
}
and the onClick handler. I have tried changing the onDrawEnd references to onClick but it didn't work. Perhaps I need to do away with the "SELECT" function altogether? What would be the best way? If you step into executeIdentifyTask in this case, you'll probably see that extent is a rectangle, whereas this function is expecting a point. You'll need to adjust your logic so that you're generating a point with which to identify. Not being able to run your code, I don't understand why you're running the identify after the drawing ends, but hopefully since you understand what you're trying to do, this will make sense. Good luck, Steve
... View more
08-15-2012
04:50 PM
|
0
|
0
|
1163
|
|
POST
|
Welcome to the JS API! Can you provide further information on exactly what is going wrong? Are you able to link to your site? There are a few potential problems in your code. Minor errors include: var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxxxxxxxx/ArcGIS/rest/services/Hillshade/MapServer");
map.addLayer(dynamicMapServiceLayer);
var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxxxxxxxx/ArcGIS/rest/services/WaterBodies_WebMercatorAux/MapServer",{"opacity":0.9});
map.addLayer(dynamicMapServiceLayer); Without a unique name, you won't be able to do anything further with these layers. It would be better to name them uniquely. dojo.connect(map, 'onLoad', function(theMap) {
//resize the map when the browser resizes
dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
});
dojo.connect(map,"onLoad",mapReady);
These should be conflated into a single function. However, I think your main problem is here: function onDrawEnd(extent){
toolBar.deactivate();
executeIdentifyTask(extent);
executeIdentifyTask is expecting a point location, and you've given it a rectangular extent. When you use the line:
clickHandler = dojo.connect(map, "onClick", executeIdentifyTask);
the onClick handler passes the point clicked by the user. This is what the identifyTask is expecting:
function executeIdentifyTask(geom) {
identifyParams.geometry = geom;
Hope this helps, Steve
... View more
08-14-2012
07:57 PM
|
0
|
0
|
1163
|
|
POST
|
Basically, do not reference anything in the esri namespace until all modules are loaded. Which means waiting dojo.addOnLoad or dojo.ready to fire. Hi Derek, How would we handle this in the case of a custom module which internally references the esri namespace? An example is on the Public Information Map, which includes the heatlayer module in the index.html page:
<script type="text/javascript" src="js/heatlayer.js"></script>
This contains a reference to the esri namespace:
dojo.declare("HeatmapLayer", [esri.layers.DynamicMapServiceLayer], {
What's the best way to migrate an application like this to 3.1? Thanks, Steve
... View more
08-09-2012
08:31 PM
|
0
|
0
|
1810
|
| 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
|