Loading map data from highcharts.com - highcharts

I am playing with Highmaps to see how it works. I notice that in its examples, all the maps are loaded from this place:
https://code.highcharts.com/mapdata/
Questions:
Is the above link for production?
Would it be better to have a copy on my own server? If yes, where to download all the maps?

Yes indeed.
The mapdata is actually the official collection of maps by Highcharts.
As described on the official docs: http://www.highcharts.com/docs/maps/map-collection
You can simply load the maps using script tags, AMD or any other way of module loading, by including the files hosted on Highcharts's servers, for instance:
<script src="http://code.highcharts.com/mapdata/custom/world.js"></script>
All of the maps in the collection are also available in geojson format and svg.
In my projects, I'd rather download the maps and load them from my server's local system.
I don't believe it really matters, but since I did not expect these maps to change any soon, I could allow myself to have a copy of my own.
The reason I did it was since I used AMD (requirejs), and with that I could load the maps as modules.

Related

Incorporating WebGL into Dash Plotly

I'm reading the Dash documentation and can't seem to figure out if I can run WebGl (JavaScript API for rendering interactive 2D and 3D graphics within any compatible web browser without the use of plug-ins) inside the python platform. Html.script will not be executed but custom javascript placed in the "Assets" folder will be executed. I'm just not sure if this would be sufficient. I just want to add some pizazz the dashboard

Is it possible to Add Attachments with a Google Calendar Addon using Alternate runtime

I've been trying to Add Attachments with a Google Calendar Addon using alternate runtimes (Not App scripts), but it seem it's either not documented anywhere or it's just impossible to do.
I'm wondering if anyone knows how this can be done returning proper JSON response from an alternate runtime, or is App Scripts the only option for adding attachments?
Thanks.
It should be possible to create Add ons with other runtimes as suggested by their official documentation.
There is also a quickstart that you can take a reference on how to create the add-on.
From the Calendar API events creation to add attachment it only supports Drive files. Sample codes in other languages on how to add the Drive files can be found here. There is also a thread utilizing Python and also wondering about the process of adding attachments.
Edit:
Would be a good idea to request a feature like that or update to the documentation for supported options:
https://developers.google.com/calendar/api/support

Mapbox GL JS : Live geoJSON overlay

I am working on a weather app in Mapbox and trying to get geoJSON files to update tornado warning polygons live on the map. (This would be done by a file called "warnings.geojson" in the same path as the html file and re-written frequently by a back end c++ app). Anyway, I found the following example on how to update live JSON files :
https://www.mapbox.com/mapbox-gl-js/example/live-geojson/
This works for what it is designed to do (and I understand what it is doing - it is what I am looking for), but I cannot seem to replace the code with my own. I would like to have it update the following test polygon file instead.
https://manidoo.000webhostapp.com/test.geoJSON
The above code is just a polygon of the Bermuda triangle. (Once I get this working, I can modify it on my own) I have tried so many variations of code that listing them here would just be a huge mess. Surely it should very simple and I am just missing it?
I believe what I should be changing is the map.addLayer() function, but I am not sure what to do. Any help would be so greatly appreciated.
The correct answer to my own question was testing the app in the wrong browser. Edge will not show geoJSON polygons that are on a local directory (atleast in this specific scenario). As MeltedPenguin pointed out - the JSON was valid. Once I uploaded my HTML and geoJSON to a server online with a http:// prefix, it worked great. Firefox showed the polygon even in offline mode.

PSPDFKit add network image into scrollview like pdf page

I'm using PSPDFKit in my app. I want to load remote images async with the framework, cause there are both images and normal files in my app. I have tried convert imageData into PDFDataProvider, which cannot be Asynchronous. Does anyone have ideas?
Author of PSPDFKit here. Please contact us for feature requests directly, we only rarely monitor StackOverflow - that's not the right platform to provide support for commercial products.
That being said, the PSPDFViewController is designed to present PDF files - we don't have immediate plans to add support for other file types.

How do I override the Umbraco built-in media library methods to use s3?

I'm currently looking to move my Umbraco installation over to a load balanced setup. In order to do this, I need to move the Media library over to a CDN like Amazon's S3. I tested a few plugins that allow upload to s3, but they all list media files on the local file directory. This flat out will not work.
I was thinking I would write the code to browse the CDN, but how can I override the built-in media library code so that it uses my version instead? I didn't see a clear way to do this in the docs?
I am using this plugin: http://our.umbraco.org/projects/website-utilities/amazon-s3-media for amazon s3. The source code is here: https://bitbucket.org/gibedigital/umbraco-amazons3provider . He recently just updated the plugin. The plugin does not use the local file system. The developer was pretty responsive (and made a few updates for me when I asked).
However, I am adding to his project because his plugin did not allow saving within a predefined directory (amazon's virtual directories). But his source code is a start.
Good luck,
Robin

Resources