POST
|
Hey folks, I'm having a bit of trouble figuring out how to format a clickable link in a map layout that is exported to PDF. I have a Dynamic Text field that is creating the link I need based on a base URL plus some text from a data field. The expression is as follows: var RSSLink = 'https://subtelforum.com/?s=' + UrlEncode($feature.SystemName);
IIf($feature.SystemName != 'NULL', RSSLink, 'Not Available') This correctly returns the URL I would like to have. (example: https://subtelforum.com?s=GTT%20Express) Further, setting the <url> tag before the dynamic element in the text properties makes this URL clickable on PDF export like so: So far so good! However, what I would like to do is to change the display of this clickable URL to read something like "Click here to read more" instead of the text of the URL itself. Like so: Click here to read more
... View more
02-12-2021
07:48 AM
|
0
|
11
|
5723
|
POST
|
Hm, unfortunately I had this checked already. I wonder if it's because all the Transpacific lines have a break in the middle at the date line. I had to draw them this way initially because every time I tried to draw lines that crossed the date line there was an issue where the line would wrap all the way around the world instead of just crossing the line. I will probably have to redraw some of these lines if I can avoid that wrap-around behavior but for now I can just output those handful of Transpacific maps manually.
... View more
02-11-2021
08:45 AM
|
0
|
0
|
3462
|
POST
|
Justin - this was absolutely the right answer! I just had to add a join to my cable landings table that associates landings with their cable systems (which was in a table I created already for other purposes) and using the Page Queries everything is filtering and displaying properly. The final hurdle I have to overcome is that a handful of cable systems that cross the Pacific are unfortunately not framed properly. See below: Obviously, I would prefer the map series to frame it so that the cable isn't split like this. If there is not an easy way to do that, it's not really a big deal as I would have still cut down my manual workload by....about 90%.
... View more
02-11-2021
07:29 AM
|
1
|
8
|
3470
|
POST
|
Justin, thanks so much - this looks like it will get me on the right track!
... View more
02-10-2021
03:51 PM
|
1
|
0
|
3481
|
POST
|
Oh wow, the Best Fit Extent gets me about 90% of the way there. As of right now, I can either have ALL the lines showing up or manually have to go through each map in the series and enable the display filter to show the single element that I need. Is there a way to automate this as well? Additionally, I'd like to have another layer present in the map filtered through an expression for each map in the series. We have 800+ landings (cities, basically) marked for all the cable systems but each individual map should only show that single cable system's landings. I have set up filter expressions for all the systems so all I have to do is load the filter, apply it then have all my landings present.
... View more
02-10-2021
12:22 PM
|
1
|
11
|
3514
|
POST
|
Hi Justin, Thank you for the detailed reply - however I think you might need to break it down a bit further for me. I'm not a true GIS professional so I'm not sure how to do some of the things you mentioned. I can add fields and set up calculated fields, though I'm not sure what the expression would be to do what you suggest.
... View more
02-10-2021
12:07 PM
|
1
|
1
|
3517
|
POST
|
I currently have a feature layer with 400+ items (lines drawn on a world map representing submarine telecommunications cables around the world) and I need to spit out a map for each individual line on an 8.5" x 11" page. The selected cable line itself and all the respective labeling also need to fit within specific margins on the page to account for things like title and status bars. My current layout looks like this: I need the selected element to be framed within the guide lines, but the map frame needs to take up the currently indicated space. The final map output (with the information added for the publication) looks like this: Eventually I would like to automate this entire process but for now I would like to speed up the map portion by setting a "Zoom to Selected" constraint within the layout guides. Is this possible?
... View more
02-10-2021
11:42 AM
|
0
|
16
|
5113
|
POST
|
I need to figure out a way to make the images placed in a story map sidecar clickable with a link that takes users to a website. How can I accomplish this? I've tried different ways of HTML embedding but it doesn't seem to work and there's no straightforward option to add a link to a picture. Is this something I can set in the story map JSON?
... View more
10-15-2020
06:52 AM
|
0
|
0
|
525
|
POST
|
So I've figured out how to get a video embedded as per: How To: Embed a video in pop-ups in ArcGIS Online for a hosted feature service I've got a process to add the necessary iframe code and video source to my layers and it works on the map and even autoplays. However...the audio now plays twice, as if a second instance of the video is playing in the background about half a second later. I would appreciate some guidance - I hope it's a simple setting or URL parameter that I have overlooked. This is the map in question: https://subtelforum.com/cablemap/ And this is what the iframe bit looks like: <iframe src="https://www.youtube.com/embed/PAwUKXMFCVg?rel=0&fs=1&autoplay=1&playsinline=0" width="316" height="178" frameborder="0"></iframe> Edit: Ok, change the iframe code to the following (basically just added mute=1) makes the video autoplay correctly, and without double audio. <iframe src="https://www.youtube.com/embed/PAwUKXMFCVg?rel=0&fs=1&autoplay=1&mute=1&playsinline=0" width="316" height="178" frameborder="0"></iframe> The only downside is this makes the user have to manually unmute the audio, but I'm not terribly concerned about that.
... View more
07-27-2020
12:40 PM
|
1
|
0
|
2016
|
POST
|
I'm trying to figure out if it is possible to embed a YouTube video in a pop-up on a hosted feature layer. An iframe embed doesn't seem to work and the iframe snippet gets removed every time I go back to edit mode.
... View more
07-22-2020
08:45 AM
|
0
|
1
|
2091
|
POST
|
Wow...it looks like that is all it was. Ok, thank you for the answer and I will certainly keep your comment about removing spaces in mind moving forward.
... View more
07-14-2020
10:32 AM
|
0
|
0
|
859
|
POST
|
I'm trying to upgrade apps that were created in 2.12 to the latest version of WAB, 2.16. I am inputting the following commands as per Upgrade apps—ArcGIS Web AppBuilder (Developer Edition) | ArcGIS for Developers to upgrade all my apps. C:\ArcGIS Web AppBuilder Dev Edition\Web AppBuilder 2_16\WebAppBuilderForArcGIS\server>node_x64 upgrade C:\ArcGIS Web AppBuilder Dev Edition\WebAppBuilderForArcGIS Which spits out this result: [2020-07-14T12:08:25.982] [INFO] upgrade - Builder folder: C:\ArcGIS
[2020-07-14T12:08:25.987] [INFO] upgrade - App id: Web
[2020-07-14T12:08:25.995] [ERROR] app - { message: 'Invalid Path.' } Just need a little guidance as to what is going on here. I am happy to provide additional information as needed!
... View more
07-14-2020
09:12 AM
|
0
|
2
|
915
|
POST
|
Dan, thank you for your help. You've given me a lot to work with and some avenues to explore to keep sharpening my skills. For now, as a quick and dirty workaround, I'm writing the initial JSON to CSV conversion to a temporary file then taking that temporary file and renaming the column headings. This allows the feature updates to happen and gets our project back in working order.
... View more
03-06-2020
06:54 PM
|
0
|
0
|
4543
|
POST
|
Alright...clearly I need some further assistance. Where would I even start looking (documentation/examples) to try to resolve this issue? I understand the keys = [k.replace(".", "_") for k in keys] line is intended to replace the period in the keys (column headers) after they've been defined or stored but how do I determine where in the process to do that step?
... View more
03-06-2020
06:06 PM
|
0
|
2
|
4543
|
POST
|
That is unfortunately what I suspected. However, I am not exactly an expert in Python yet and have had to rely on code examples to cobble together what's necessary to get my tools to work. The following code takes the JSON output from our AIS service and converts it into a CSV file: import json
from pandas.io.json import json_normalize
def loading_file():
#file path
file_path = r'C:\Users\kierc\projects\api\latestshiplocation.json'
#Loading json file
json_data = open(file_path)
data = json.load(json_data)
return data
#Storing Available Keys
def data_keys(data):
keys = {}
for i in data:
for k in i_keys():
keys[k] = 1
keys = keys.keys()
#Excluding nested arrays from keys - hard coded -> IMPROVE
new_keys = [x for x in keys if
x != 'attributes' and
x != 'change']
return new_keys
#Excluding nested arrays from json dictionary
def new_data(data, keys):
new_data = []
for i in range(0, len(data)):
x = {k:v for (k,v) in data[i].items() if k in keys }
new_data.append(x)
return new_data
def csv_out(data):
data.to_csv(r'C:\Users\kierc\projects\api\Ship_Positions.csv', encoding='utf-8')
def main():
data_file = loading_file()
keys = data_keys(data_file)
table = new_data(data_file, keys)
csv_out(json_normalize(table))
main()
It converts this to a CSV file very nicely, except for the column headers. I'm not sure where I need to change the code so that it uses an underscore instead of a period punctuation. Again, I'm a little unsure as to why these field names aren't working any longer. They were on the previous computer using ArcGIS Pro 2.4 - both through these python scripts and the tools within ArcGIS Pro.
... View more
03-06-2020
05:47 PM
|
0
|
4
|
4543
|
Title | Kudos | Posted |
---|---|---|
1 | 07-27-2020 12:40 PM | |
3 | 02-22-2023 12:19 PM | |
1 | 07-23-2019 09:46 AM | |
1 | 03-06-2020 04:33 PM | |
2 | 04-20-2021 10:02 AM |
Online Status |
Offline
|
Date Last Visited |
04-26-2023
07:35 PM
|