From ScigallaP at Ibb-bochum.de Fri Sep 2 05:59:29 2016
From: ScigallaP at Ibb-bochum.de (ScigallaP)
Date: Fri, 02 Sep 2016 14:59:29 +0200
Subject: [OpenLayers-Users] OL3 and kml problem issue on Android 6.0.1
Message-ID: <57C977B1.1070700@Ibb-bochum.de>
Hello,
I'm new in OL and have an first simple question here.
My frist small project to show kml files with OL and OSM runs fine on my
local PC and on a webserver too. The result is shown on desktop (chrome
and firefox) and mobile browser (chrome and opera).
But when I cpoy the complete code (and file structure including kml
files) on my Android cellphone or tablet, only the OSM map is shown, but
no kml. Not with chrome and not with opera.
My devices are Galaxy Tab S2 and HTC ONE M8, both Android 6.
I want use it locale on Android devices, to beware download large kml
(>10 MB).
Here my code:
### BEGIN HTML code ###
Hallo OSM
### END HTML code ###
The HTML file, ol.css, samples.css, ol.js and both kml files are stored
in the same structure on Android as on PC and webserver.
Any help would be appreciated.
Thanks in advance!
From osgeo.mailinglist at gmail.com Sat Sep 3 06:52:32 2016
From: osgeo.mailinglist at gmail.com (Thomas Gratier)
Date: Sat, 3 Sep 2016 15:52:32 +0200
Subject: [OpenLayers-Users] OL3 and kml problem issue on Android 6.0.1
In-Reply-To: <57C977B1.1070700@Ibb-bochum.de>
References: <57C977B1.1070700@Ibb-bochum.de>
Message-ID:
Hi,
Do you serve your HTML via a local server?
If you just put files like that without a web server, you will hit the same
origin policy issue to load KML because of an url call to kml file from an
url like file://your/path/your_index.html
Try a server like https://github.com/NanoHttpd/nanohttpd
Otherwise, try to use this recipe
http://stackoverflow.com/questions/8648616/webview-javascript-cross-domain-from-a-local-html-file
(never tested so no warranty)
Cheers
Thomas Gratier
2016-09-02 14:59 GMT+02:00 ScigallaP :
> Hello,
>
> I'm new in OL and have an first simple question here.
>
> My frist small project to show kml files with OL and OSM runs fine on my
> local PC and on a webserver too. The result is shown on desktop (chrome and
> firefox) and mobile browser (chrome and opera).
>
> But when I cpoy the complete code (and file structure including kml files)
> on my Android cellphone or tablet, only the OSM map is shown, but no kml.
> Not with chrome and not with opera.
>
> My devices are Galaxy Tab S2 and HTC ONE M8, both Android 6.
>
> I want use it locale on Android devices, to beware download large kml (>10
> MB).
>
> Here my code:
>
> ### BEGIN HTML code ###
>
>
> Hallo OSM
>
>
>
>
>
>
>
>
>
> ### END HTML code ###
>
> The HTML file, ol.css, samples.css, ol.js and both kml files are stored in
> the same structure on Android as on PC and webserver.
>
> Any help would be appreciated.
>
> Thanks in advance!
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From electronicpanda at gmail.com Wed Sep 28 03:21:52 2016
From: electronicpanda at gmail.com (Sergeant_york)
Date: Wed, 28 Sep 2016 03:21:52 -0700 (MST)
Subject: [OpenLayers-Users] OpenLayers 3 Application Demo Video
Message-ID: <1475058112544-5288228.post@n6.nabble.com>
Here is the demonstration video of following visualizations:
1- Average People Density between 2 dates in selected categories (Heat Map)
2- Total People Count between 2 dates in selected categories (Heat Map)
3- Thematic Quarters with using people population between 2 dates
(Choropleth)
4- Inverse distance weighting interpolation of people density for site
selection (IDW)
5- Service area analysis (coming soon...)
Using 100m+ record dynamically right now.
Hope you enjoy.
https://www.youtube.com/watch?v=4OyN7-hNKhk
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/OpenLayers-3-Application-Demo-Video-tp5288228.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.