|
POST
|
Thank you Tom for replying. Correct, I changed the "symbol" with "simpleMarkerSymbol" but still nothing. the graphic is not added to the map.
... View more
05-21-2015
07:17 PM
|
0
|
3
|
1507
|
|
POST
|
I am not sure what I am missing in this code. I am querying a point service and get a result. and then trying to convert the result to graphic to add it on the map... but no luck. var querystreetIntersect = new Query();
querystreetIntersect.where = where;
querystreetIntersect.returnGeometry = true;
streetLayer.selectFeatures(querystreetIntersect, FeatureLayer.SELECTION_NEW, function (features) {
var lat = features[0].attributes["Lat"];
var lon = features[0].attributes["Long"];
//var point = new Point(lon, lat, new SpatialReference({ wkid: 102100 }));
var simpleMarkerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 12, new SimpleLineSymbol().setStyle(SimpleLineSymbol.STYLE_SOLID).setColor(new Color([100, 100, 100])), new Color([0, 0, 0, 0]));
var graphic = features[0];
graphic.setSymbol(symbol);
console.log(features[0]);
map.graphics.add(graphic);
map.centerAndZoom([lon, lat], 19);
}); here is the result object from the console:
... View more
05-21-2015
03:09 PM
|
0
|
7
|
4815
|
|
POST
|
Thank you thejus.kambithejus.kambi, I was able to achieve this using the FilteringSelect.
... View more
05-21-2015
06:17 AM
|
0
|
1
|
1075
|
|
POST
|
I have this logic that I would like to implement for streets intersection. As image below, I have a form with 1 textbox and 1 combobox. I would like to autocomplete the textBox while searching a street and then auto populate the combobox with all matching intersect streets. I am using a service that has 2 fields (str1 and str2).
... View more
05-19-2015
08:11 AM
|
0
|
3
|
4420
|
|
POST
|
kenbujais right. I also use this widget a lot and it's now updated as well.
... View more
05-01-2015
10:58 AM
|
2
|
1
|
2028
|
|
POST
|
I have noticed that when adding bootstrap css file even before the <link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css"> css file, I loose the little help message when selecting a draw tool. this image shows what I mean. I am wondering what css object boostrap is affecting for this help floating message. does anyone ever notice this?
... View more
05-01-2015
10:52 AM
|
0
|
1
|
2886
|
|
POST
|
This is actually a very good concept. I hope this will be available in the 3.14 API. Also, on top of this, it would be great to add an option to be able to label features when displayed.
... View more
04-20-2015
07:34 AM
|
0
|
0
|
2333
|
|
POST
|
Hi Rene, Sorry but I am still having a hard time implementing the points clustering using this example: Default Cluster Layer
... View more
03-30-2015
12:34 PM
|
0
|
0
|
2333
|
|
POST
|
I also noticed that the Search multiple sources widget only works for the featureServer type. I tried to search through featureLayer of type ...MapServer/0 and got the pagination error as below...
... View more
03-30-2015
09:39 AM
|
0
|
9
|
3253
|
|
POST
|
Thank you both Tom and Rene, I guess I am going to use the Clustering in ArcGIS API for Javascript. I really wish I could use ESRI Leaflet for clustering. I tried tsellsteexample but I couldn't get the measurement widget to work as well as the Editor using attribute inspector as they are using the ArcGIS API for Javascript library.
... View more
03-24-2015
02:03 PM
|
0
|
0
|
2333
|
|
POST
|
I am really interested in using Clustering points from Esri leaflet and I tried the following in my index page, I have these references: <!-- Load Leaflet from CDN--> <link rel="stylesheet" href="https://community.esri.com//cdn.jsdelivr.net/leaflet/0.7.3/leaflet.css" /> <script src="//cdn.jsdelivr.net/leaflet/0.7.3/leaflet.js"></script> <!-- Load Esri Leaflet from CDN --> <script src="//cdn-geoweb.s3.amazonaws.com/esri-leaflet/1.0.0-rc.6/esri-leaflet.js"></script> <!-- Include Leaflet.markercluster via rawgit.com, do not use in production --> <link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/Leaflet/Leaflet.markercluster/v0.4.0/dist/MarkerCluster.Default.css"/> <link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/Leaflet/Leaflet.markercluster/v0.4.0/dist/MarkerCluster.css"/> <script src="https://cdn.rawgit.com/Leaflet/Leaflet.markercluster/v0.4.0/dist/leaflet.markercluster.js"></script> <!-- Load Clustered Feature Layer from CDN --> <script src="http://cdn-geoweb.s3.amazonaws.com/esri-leaflet-clustered-feature-layer/1.0.0-rc.1/esri-leaflet-clustered-feature-layer.js"></script> <script src="http://js.arcgis.com/3.13/"></script> And my code is as follow: map = new Map("map", {
basemap: "streets",
center: [-98.198017, 37.485563],
minZoom: 5,
zoom: 5,
slider:false
});
var fLayerTest = 'http://...fLayer/MapServer/0';
var trees = L.esri.clusteredFeatureLayer(fLayerTest).addTo(map); The code above won't work and also, it does not even give an error. I am wondering if ArcGIS API is compatible with ESRI Leaflet... in terms of the map reference. Here is the Esri Leaflet I would like to use and at the same time keep the map instance as it is... Clustering points | Esri Leaflet
... View more
03-24-2015
10:59 AM
|
0
|
8
|
7790
|
|
POST
|
Hi Chris, Yes I did look through the API as well with no luck. So, I posted this manner as an idea at ArcGIS Idea - Geocode Service Max Results Suggest . We can all go support it and hopefully, ESRI will take it to consideration. I think it will be great if we can control the suggestions results...
... View more
03-13-2015
12:22 PM
|
0
|
0
|
2430
|