|
POST
|
Could this be a misconfiguration on my part or is there a bug in the ClusterLayer? I think it could be a bug in the popup itself, irrespective of the cluster layer. I can reproduce the problem in this Popup sample, by opening the popup, closing it, then scrolling around the world so that San Francisco appears from the other side. Clicking a feature again opens the popup in the first location. I clicked on the right-hand side of the map, but the popup appears in the left-hand side of the map: [ATTACH=CONFIG]17944[/ATTACH] Steve
... View more
09-24-2012
03:03 PM
|
0
|
0
|
1332
|
|
POST
|
I have a popup/infowindow that returns info for 2 of the layers in my map How are you calling the popup - what is causing the query to run? Are you running an IdentifyTask, for example? Is there a way to disable this so that the popup only appears when a feature is clicked? You could associate an infoWindow with a feature layer. In that case, the infoWindow will show when clicking on the feature. When you click away from a feature, nothing happens. Another option is to run a queryTask on click. If there are features found, display them in the infoWindow. If not, don't display the infoWindow.
... View more
09-23-2012
08:12 PM
|
0
|
0
|
1020
|
|
POST
|
var features = new esri.layers.FeatureLayer
(
"http://gis-app.bucknell.edu:6080/arcgis/rest/services/Pilot_FeatureAccess/MapServer"
,{mode : esri.layers.FeatureLayer.MODE_SNAPSHOT, outFields : ["*"]}
);
When you reference a feature layer, you need to include the layer's ID on the end of the URL. See the Feature Layer sample, which lists the URL as:
var featureLayer = new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/MapServer/1"
note the "1" on the end. Steve
... View more
09-23-2012
07:20 PM
|
0
|
0
|
1926
|
|
POST
|
The Popup and InfoWindow only display one popup at a time Hi Kelly, I suspected that but couldn't find any documentation to back it up. Perhaps the InfoWindow page could be updated to include that? It's kind of hinted by map.infoWindow which says "Displays the InfoWindow on a map" but I can't see any explicit mention of the fact that only 1 infoWindow is supported on the map. Cheers, Steve
... View more
09-19-2012
07:34 PM
|
0
|
0
|
3554
|
|
POST
|
so my question is how to use "mobile_geolocaterenderer" source code with my map Hi Tim, All I can suggest is that you work through the example you referenced at http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/exp_geolocate.html At a high level, here is what it's doing: dojo.addOnLoad(init); This runs the init function when the page first loads. The init function sets up the map, and adds a background tiled layer. dojo.connect(map, "onLoad", initFunc); This runs the initFunc function once the basemap has loaded. See the comments at the top of the sample script's page to see what this function is doing: In the snippet below, we check to see if browser supports geolocation, if it does we use the getCurrentPosition and watchPosition functions. The getCurrentPosition function retrieves the users current location and watchPosition tracks the users position as it changes. Both functions have the same structure, a success callback, error callback and a PositionOptions object The function uses: navigator.geolocation.getCurrentPosition(zoomToLocation, locationError); which means that the zoomToLocation function is called - this adds a graphic to the map at the user's current location. Hope this helps, Steve
... View more
09-19-2012
03:44 PM
|
0
|
0
|
909
|
|
POST
|
Hi Tim, I'm still not sure what you're actually trying to do. It looks like you're using a Dynamic layer, so perhaps you could start by modifying the Dynamic Map sample. Your code uses: var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://locahost/arcgis/rest/services/landscape/grass_mapping/MapServer");
map.addLayer(layer); Have you verified that http://locahost/arcgis/rest/services/landscape/grass_mapping/MapServer is valid - does it appear in a similar manner to the sample service http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Population_World/MapServer ?
... View more
09-18-2012
04:52 PM
|
0
|
0
|
909
|
|
POST
|
I found this and wanted to try however have not much idea of JS http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/exp_geolocate.html so, I thought changing url for map location from http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer to http://myserver/arcgis/rest/services/folder/webmap/MapServer" but did not work. Hi Tim, Welcome to the JS forum. Can you be clearer about what you're trying to do? Are you trying to replace the ocean basemap with another basemap? Exactly which part of your code is failing? If you open up http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer in a web browser you'll see the REST endpoint, containing information about that service. What happens when you try your own server - do you see the same type of information? The Ocean_Basemap service is cached (Note that it says "Single Fused Map Cache: true"), which is necessary to display a tiled layer. See http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/arcgistiledmapservicelayer.htm for more info. Steve
... View more
09-17-2012
03:28 PM
|
0
|
0
|
909
|
|
POST
|
Hello, Can i access esri web tile layers via urls like at this example: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_web_tiled.html thanks, brons I haven't tried this, but from looking at the Net tab in Firebug, it appears that ArcGIS Server uses a similar tiling scheme. Eg, here is a URL for an image tile: http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/14/6335/2621 Have you tried plugging ArcGIS Server into that sample? Steve
... View more
09-16-2012
05:38 PM
|
0
|
0
|
540
|
|
POST
|
when using the popup via the custom app I have created, the arrow image does not show up. My thought is that the image was not included in the downloaded code from arcgis.com Try viewing the original (working) version in Firefox with the Firebug plugin installed. Examine the CSS panel, and you'll be able to see the image that is being shown. Chances are that you don't have that image, or that it's in the wrong place on your system.
... View more
09-16-2012
03:40 PM
|
0
|
0
|
549
|
|
POST
|
infinite zoom and tiles are mutually exclusive, by definition. You cannot have both. Jeff, That's true right now - but it would make a good enhancement request to have this ability. The Google Maps app on an iPhone does this. You can adjust the zoom level "infinitely" using pinch/zoom - the tiles get marginally bigger or smaller, until you cross to a new scale threshold, whereafter the display changes to show the new set of tiles. Conceptually, it seems that the ArcGIS JS API could be modified by Esri to do the same thing. There could be a "useInfiniteZoom" option when using a tiled basemap layer, for whether to restrict zooming to discrete levels, or allow any zoom level. Someone from Esri might have a response as to whether that's feasible and in the pipeline. Steve
... View more
09-14-2012
09:24 PM
|
1
|
0
|
3026
|
|
POST
|
Can you include the full code (perhaps as a zipped attachment), or point us to the live site somewhere?
... View more
09-13-2012
03:27 PM
|
0
|
0
|
1539
|
|
POST
|
My graphics layer is shotLayer and the individual graphics is the shot variable (both declared globally) When you post a code sample, it helps if you can use the Code tags (the # at the top right of the editor) so the formatting isn't stripped out.
/ Function to show the shots that were returned in the table query (attached to graphics)
function showResults(results) {
dojo.forEach(results.features, function (resultsFeature) {
dojo.forEach(shotLayer.graphics, function (shotLayerGraphic) {
if (resultsFeature.attributes.LOC == shotLayerGraphic.attributes.Path) {
shot.show();
alert("test"+ resultsFeature.attributes.LOC "and" + shotLayerGraphic.attributes.Path);
}
});
});
}
It looks as if you're not re-setting "shot", so the same feature is being displayed at each iteration of the loop. Cheers, Steve
... View more
09-13-2012
03:11 PM
|
0
|
0
|
1539
|
|
POST
|
I think you'll need to share some sample code, or a link to your site, before anyone can help you.
... View more
09-12-2012
08:56 PM
|
0
|
0
|
574
|
|
POST
|
Great stats in that linked article on Denver - thanks for sharing
... View more
09-11-2012
07:26 PM
|
0
|
0
|
1080
|
|
POST
|
The crime points are fed by a feature layer. I would love to be able to capture the symbol from the crime graphics when I click on them and use them inside of my popup window Take a look at the Symbol Objects page, which may give some clues. It looks as though you're using picture marker symbols, in which case you can get a reference to the symbol using the instructions on the Image - Feature Service page. See the example image, which shows a full URL which you can use in an IMG tag. Hope this helps, Steve
... View more
09-11-2012
03:09 PM
|
0
|
0
|
786
|
| 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
|