|
POST
|
My only thought is to set a maximum zoom level in your app and stick to that. You could look at extent size (width or height) for a set of activities and, if it's smaller than some threshold, you could use centerAndZoom to the center of the extent and a zoom level rather than passing the extent directly to map.setExtent.
... View more
04-18-2013
08:19 AM
|
0
|
0
|
1094
|
|
POST
|
A number of things have moved, but all content is still available. Anything specific you're looking for that I can help you find?
... View more
04-18-2013
07:50 AM
|
0
|
0
|
1819
|
|
POST
|
Unfortunately no, there's not a way to know whether tiles displayed from a basemap are actual map tiles or "map unavailable" tiles.
... View more
04-18-2013
07:49 AM
|
0
|
0
|
1094
|
|
POST
|
Please post the errors your seeing. Also, please use this site as your main resource for JS API content (API ref, samples, conceptual help and tutorials): http://developers.arcgis.com/en/javascript/
... View more
04-18-2013
06:55 AM
|
0
|
0
|
1156
|
|
POST
|
Derek in your example, you are querying against a featureserver. Can you query against a mapserver instead or does it have to be a featureserver to do clustering? This is the type of thing that's easy to test and figure out on your own :). The answer is yes, you can query against a layer in map service. I used a feature service because it was readily available.
... View more
04-18-2013
06:29 AM
|
0
|
0
|
2305
|
|
POST
|
Hi Derek, any chance to get point clustering to API? It would be really nice. We'd like to do it but we don't have a timeline for making it happen.
... View more
04-18-2013
06:27 AM
|
0
|
0
|
2305
|
|
POST
|
Yes, use a label in fieldInfos as shown here: http://developers.arcgis.com/en/javascript/jssamples/widget_popupfl.html Something like:
var popupTemplate = new esri.dijit.PopupTemplate({
title: "{address}",
fieldInfos: [
{fieldName: "req_type", visible: true, label:"req_type and extra text"},
{fieldName: "req_date", visible:true, label:"Date" ,format:{dateFormat:'shortDateShortTime'}}
]
});
... View more
04-17-2013
05:20 PM
|
0
|
0
|
613
|
|
POST
|
Here's an example that uses a query task to get data from a map service and puts it in the format expected by the cluster layer: http://dl.dropboxusercontent.com/u/2654618/query_task_point_clustering/index.html I didn't change anything in extras/ClusterLayer.js. The dojo.map statement that creates an array of objects in the format expected by the cluster layer in the addClusters function is probably the piece you were missing.
... View more
04-17-2013
04:31 PM
|
0
|
0
|
2305
|
|
POST
|
You can do the same thing with lines, just need to tweak the JSON you pass to the feature layer constructor. Since your source file is GeoJson, you need to convert to the esri json format as well. I used this: https://github.com/Esri/geojson-utils Here's a working example: http://jsfiddle.net/ZdLF7/ Note that I included the GeoJson converter JS directly from github. If you use that code to convert your GeoJson you should download and host that .js file yourself.
... View more
04-17-2013
04:02 PM
|
0
|
0
|
1034
|
|
POST
|
The OSM tiles that are accessible via the map's basemap option is the default, pre-rendered tileset. You don't get access to features because you're using tiles. If you want to selectively show features, you'll have to render your own OSM tiles.
... View more
04-17-2013
09:57 AM
|
0
|
0
|
771
|
|
POST
|
You're welcome and you're right�?? we need to doc InfoWindowLite. We'll do that.
... View more
04-17-2013
09:38 AM
|
0
|
0
|
933
|
|
POST
|
Not without a fair amount of work on your part�?? you'll need to re-render and host your own tileset if you want to have control over what's labeled and what's not.
... View more
04-17-2013
08:45 AM
|
0
|
0
|
771
|
|
POST
|
At 3.4, we changed the default info window to be the popup. We doc'ed this in the what's new in 3.4. This affects both the regular and compact builds. To get the pre-3.4 style info window back for the compact build, do this: dojo.require("esri.dijit.InfoWindowLite"); ...<snip>... map = new esri.Map("map", { basemap: "streets", center: [-104.808, 39.719], zoom: 8 }); var iw = new esri.dijit.InfoWindowLite({}, dojo.create("div", null, map.root)); iw.startup(); map.setInfoWindow(iw); Full example here: http://jsfiddle.net/SDZHp/ Kelly also posted how to get the older style info window back in another thread if you're curious: http://forums.arcgis.com/threads/80652-Info-Window-Version-3.4-of-the-JavaScript-API?p=286015&viewfull=1#post286015
... View more
04-17-2013
08:43 AM
|
0
|
0
|
933
|
|
POST
|
createMap gives you access to the map once it's loaded. From there, you can get to layers via map.getLayer and map.layerIds and (in your case, since you want to work with feature layers), map.graphicsLayerIds. To be able to change the symbology, I need to be able to iterate through graphics in a feature set - yet I have no idea where to get a feature set object from. All the examples I see use 'Feature Layers' loaded through URLs. Rather than iterating through features and changing their symbology, use a renderer. Here's an simple example that uses the CO counties layer from your webmap, changes the symbology and then turns the layer on: http://jsfiddle.net/yUY34/ The example uses a SimpleRenderer but you can use a ClassBreaks or UniqueValue renderer depending on how you want to symbolize your data. If you comment out line 55, which sets the renderer, you'll see that the original symbology is used. You can use this approach in your app: create renderers and then use featureLayer.setRenderer to specify them for your various feature layers.
... View more
04-16-2013
03:25 PM
|
0
|
0
|
837
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|