local-cdn | Local CDN to speed up the access of stackoverflow.com | Browser Plugin library
kandi X-RAY | local-cdn Summary
kandi X-RAY | local-cdn Summary
Local CDN to speed up the access of stackoverflow.com and other sites.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of local-cdn
local-cdn Key Features
local-cdn Examples and Code Snippets
Community Discussions
Trending Discussions on local-cdn
QUESTION
I am trying to include openlayers in a nativescript app inside a webview. This works fine for the most part. So far I used remote CDN files to get openlayers in the webview. When I change this line
to this line
The image icons in openlayers do not work properly anymore (See images below). When I open the html file in Chrome on my laptop it works fine either way. Why is the Webview behaving differently when I use a local file?
Here is the link to the repo: https://github.com/ll9/ol-local-cdns
Update: Wow, apparently one can not post inline images when you do not have enough Stackoverflow points so here are the images as plain links:
Local file: https://raw.githubusercontent.com/ll9/ol-local-cdns/master/ol-fail.png
Remote: https://raw.githubusercontent.com/ll9/ol-local-cdns/master/ol-ok.png
...ANSWER
Answered 2018-Dec-25 at 22:46OpenLayers uses UTF-8 for some of characters on control buttons (instead of using html codes such as −
). The CDN libraries are saved in UTF format, but any created or edited by other means might not be. Inserting a tag in the html header will ensure the browser correctly interprets any such scripts regardless of their origin. See also openlayers 5.1.3: "Damaged" zoom out button in quick start example?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install local-cdn
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page