POST
|
How can I generate a PNG/JPG image from an simple map without any user interaction? On a particular page on our website, we have a small and simple JavaScript API 3.17 map embedded in the corner of the web page. It only contains an Esri basemap with a simple point graphic. This map is not interactive (i.e. users cannot zoom and pan etc) as its purpose is just to show the location of the point. Apart from the basemap Now, on the same web page, users can click a button to generate a PDF file. This PDF file needs to have that map image included. This is illustrated in the image below: How can I do this? The Print Task in JavaScript API needs to be called by interacting with the actual map. I am not sure if I can use a geoprocessing service to print from the JavaScript based map?
... View more
09-07-2016
11:14 PM
|
0
|
2
|
1291
|
POST
|
Hi Robert, thanks for the solution, it works well for me. Is there a way to turn on just one sub-layer at any given time, instead of showing multiple of them? For instance, I have a parent layer called "Cities", and sub-layers "Show by Population" and "Show by Area", where only one of the sub-layer can be turned on? Thanks in advance.
... View more
08-29-2016
10:56 PM
|
0
|
1
|
460
|
POST
|
Hi Xander, most of them will have a single date value based on year, some will have start and end dates (also based on year).
... View more
08-15-2016
12:57 AM
|
0
|
1
|
439
|
POST
|
This approach might work for us. We could retrieve the geometries and attributes and construct graphic layers from them. We have points and polygons to display. I think the polygons could be multi-part polygons.
... View more
08-10-2016
04:02 AM
|
0
|
0
|
1393
|
POST
|
Are there any best practice / advice on storing multiple temporal attributes in geodatabases (SQL or file)? We have a feature class that have multiple attributes that change over time. For example, a "Cities" feature class can have attributes of "Population Size", "Pollution", "Accident Counts"... etc that change over time (per year). We want to show the attribute changes over time as a time-aware layer in ArcMap and a JavaScript API app. What would be the best way of storing such information? So I will have a "Cities" feature class. Should I have separate tables such as "CitiesPopulationSize" and "CitiesAccidentCounts", or should I use one single table storing all the time-based attributes? We can have many time-aware attributes for the several feature classes. Anyone got any ideas/experience with this?
... View more
08-09-2016
07:29 PM
|
0
|
4
|
1299
|
POST
|
This might sound weird but due to cost and architectural constraints, I need to explore whether it is possible for an ArcGIS API for JavaScript web app to connect directly to a Microsoft SQL database to display (and render) geometries on the web app? In another words, no ArcGIS for Server is involved here - just JavaScript to SQL database. I don't believe this can be achieved.
... View more
08-05-2016
01:39 AM
|
0
|
5
|
5756
|
POST
|
Thanks Robert. I found the following link for performance enhancement with Feature Layers which is quite helpful, but hasn't really improved my case: Feature Layer Best Practices | Guide | ArcGIS API for JavaScript 3.17 I will give dynamic layers a go. Before I spend time on it, would you or anyone else know any limitations with dynamic layers? My basic requirements are: Allow users to change point symbology based on different attributes (e.g. types, status, etc). Allow users to change point symbol colours and transparency. Have a info popup that loop through the point attributes and display them. Change point sizes based on zoom levels. Thanks.
... View more
08-02-2016
04:05 PM
|
0
|
1
|
594
|
POST
|
I am using a FeatureLayer for a points layer with close to 10,000 points around the world, and finding the performance is slow. Are there any advise or best practice to speed things up? This points layer is served using ArcGIS for Server 10.4. The points come from a file geodatabase. I need to use FeatureLayer because we need to allow users to change symbology dynamically on the JavaScript web viewer and use popups. At the globe level, it takes a few seconds to draw the points form the FeatureLayer, where it is almost instant if I use ArcGISDynamicServiceLayer (which is expected). In addition, the quality of the points are visibly more blurry than the one from ArcGISDynamicServiceLayer. I have tried snapshot and on-demand modes for the FeatureLayer but they do not improve speed.
... View more
08-02-2016
01:28 AM
|
0
|
3
|
1946
|
POST
|
Time-aware layers are not currently supported in 4.0. What's the release plan for this? In the meantime, are there any workaround code/samples that we can use?
... View more
07-25-2016
05:16 AM
|
0
|
1
|
1926
|
POST
|
I am trying to use ArcGIS API for JavaScript 4.0 but apparently the scalebar isn't available yet? On the JavaScript API functionality matrix page, as of now, it says "coming soon". When is it coming? And is there any workaround for it - I don't want to spend time to write any code from scratch. I would expect such a simple widget should be available (at least for 2D views!).
... View more
07-25-2016
01:02 AM
|
0
|
0
|
961
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|