POST
|
Thanks, Wendy! That worked. I don't know how the font encoding was set to "MSSymbol" and why only in ArcGIS Pro and not ArcMap, but I'm glad it works!
... View more
05-15-2019
08:31 AM
|
0
|
0
|
84
|
POST
|
Hi Wendy, Thanks for the response and the effort you're putting into solving this problem. I am including the shapefile and a layer file with this comment as files. The feature layer in question is a geology layer that is available to the public here. A couple of things I didn't mention about the issue that's probably relevant. The layer file (also attached) contains the symbology that must be applied to the geology feature class, based on the column of "Legend Text". The labeling of features, as per FGDC standards, has to be done using the custom font "FGDC GeoAge" and applied to field "UNIT_LAB_1". This creates special characters that are used in geology to indicate time, age and rock units. For example, ":3gr" becomes The issue outlined in this thread presents itself only when I apply the layer file. Before importing the layer file's symbology, I am able to correctly label features using the FGDC GeoAge font on the specified field. All other fonts function as they should, as well. However, once I apply the .lyrx file, none of the fonts function or look as they should. My original post's screenshot is taken at this moment. Curiously enough, it's only the FGDC fonts that appear with familiar characters (although still wrong), while the others all contain the same weird characters. Hope that makes sense. Thanks! Kevin
... View more
05-14-2019
02:13 PM
|
0
|
2
|
84
|
POST
|
Hi Wendy, Thanks for the response. This is a geology layer I'm trying to label, and while the field I'm using to label (UNIT_LABEL) does have some special characters like " ~, :, <, * " (see screenshot below), the same problem occurs when I apply the font to a different field which has only alphanumeric characters. Hope that makes sense. I've currently given up doing this in ArcGIS Pro and am doing this in ArcMap. It works as it should in ArcMap. Thanks.
... View more
05-13-2019
04:10 PM
|
0
|
4
|
84
|
POST
|
I'm trying to label a feature class in ArcGIS Pro, but I can't get the correct characters for any font. See screenshot below: The characters in the preview panel (or layer when labeled) are not Arial. This happens for most of the fonts that I select for this layer. Other layers do not have this problem. What's going on here?
... View more
05-13-2019
09:09 AM
|
0
|
6
|
198
|
POST
|
I want to create an option in my webmap (drawn with ArcGIS API for JS) where I allow the user to draw polygons (probably using the Sketch widget). I then want to submit this polygon to a database. What's the best way to do this? Perhaps GeoJSON? Are there any options to convert created polygons to geojson with this API? I'm using php to connect to a postgreSQL db that stores this data. Thanks!
... View more
05-12-2019
12:17 PM
|
0
|
1
|
555
|
POST
|
Hi all, I'm trying to create a web mapping application that lets users submit data from a map interface to a database existing server-side. I'm wondering if anyone could guide me through the basic design of this client-server architecture. I'm a relative beginner to full-stack web GIS development, so any help is appreciated! What am I trying to do? I want to build a webmap that allows the user to do these tasks: 1) draw polygons on the map to choose areas 2) fill out a form on the side panel related to the polygon that was created. User inputs information into form and submits it. When the form is submitted, the polygon data is automatically submitted with it. This data is then recorded into a table in database existing on a server. I would also like to retrieve this data from the database and put it back on the map for a separate part of the application. What ideas do I have so far? I'm using the ArcGIS API for JavaScript to create the webmap. I think the best way to submit the drawn polygons to the database would be to convert them to GeoJSON and then submit it as a string to a new column in the table. But how do I do this? Is there a way in the JS API to convert the polygons that are drawn using the Sketch widget to GeoJSON? Or is there a way to utilize some tool like GeoServer for this, and not go the GeoJSON route? And after this step, how do I submit this form and polygon data to the Postgres database? I was thinking of using PHP and PDO Any ideas or tips on how to go about designing this app? Thanks!
... View more
05-10-2019
09:31 PM
|
1
|
2
|
342
|
POST
|
Hi Robert, Thanks for taking the time to work on this code. I definitely learned some new things from this. Starting with the way to calculate dimensions in CSS using calc. And huge props for taking the time to combine the 3 different query functions into one queryTornadoes() function that also combines all the queries. Thanks! Kevin
... View more
05-08-2019
04:06 PM
|
0
|
1
|
487
|
POST
|
Thanks for the help, Noah! I missed the module issue because I was using a bunch of different sample query examples as reference and forgot to do a final check. I think the edited code you provided is very helpful, especially because it helped me realize that the crucial component I'm missing is the missing "resultsLayer" in my layers property in the Map object. See below: var map = new Map ({ basemap: "dark-gray-vector" , layers: [ tornadoLayer , resultsLayer ] });
... View more
05-08-2019
10:11 AM
|
1
|
0
|
487
|
POST
|
I'm working with the API for JavaScript to create a map of tornadoes in the US. I'm using sliders and other inputs to allow the user to query the data client-side. I'm having some difficulty getting the results from the query to be added to the map. The client-side slider is supposed to query the layer for number of fatalities from tornado events. I used this sample code from the API for JS page as reference, but can't figure out where I made a mistake. Link to entire code on jsfiddle Here's the gist of what I did: Added an event listener to listen for slider input change. fatal . addEventListener ( "input" , function () { queryFatalities (). then ( displayResults ); }); Performed query of feature layer using createQuery() method to search for number of fatalities: function queryFatalities () { var query = tornadoLayer . createQuery (); query . where = "fat <=" + fatal . value ; return tornadoLayer . queryFeatures ( query ); } Used addMany() method to add queried features to webmap. This is the part that I suspect I screwed up on. function displayResults ( results ) { resultsLayer . removeAll (); var features = results . features . map ( function ( graphic ) { graphic . symbol = { type: "simple-line" , width: 2 , color: "darkorange" }; return graphic ; }); resultsLayer . addMany ( features ); } Any advice on how to proceed to get this query function working would be much appreciated. Thanks!
... View more
05-07-2019
02:11 PM
|
0
|
6
|
1193
|
POST
|
Solved it. Turns out I was using the url for Feature Service. Not the layer itself. Fixing the url works.
... View more
05-01-2019
12:00 PM
|
0
|
0
|
22
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|