-
Notifications
You must be signed in to change notification settings - Fork 72
Conversation
789a286
to
021f6e3
Compare
Nice !! and tough mtb test ! |
021f6e3
to
f0662a0
Compare
good for review
|
@@ -395,6 +420,18 @@ | |||
var layer = layers[i]; | |||
layersIds.push(layer.id); | |||
layersOpacity.push(layer.invertedOpacity); | |||
|
|||
// if the layer is a KML | |||
if (gaKml.isKmlLayer(layer) && /http/.test(layer.url)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would make sense to also check for https
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http
is include inhttps
but I can improve a bit the regex to be sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dummy, of course. Improvement might still be a good idea. Can we use ^ and ://
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i'll do that
KML Drawing Saving is broken |
@ponceta you're insane !!!!! it's only for imported KML.;) . You can draw then import and then save :) Update: misunderstanding what you want. Good catch i try to fix this. |
f0662a0
to
54c2d4c
Compare
<3 sorry for catching bugs ;) |
ddb1819
to
0c319f2
Compare
Good for final review/test |
if (!kmlString) { | ||
kmlString = new XMLSerializer().serializeToString(node); | ||
} | ||
kmlString = new ol.format.KML().writeFeatures(exportFeatures); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does ol3 now take care of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes OL3 returns a string now
Code looks very good. Just a small thing: when loading the kml in off-line mode, I don't get the start and end symbols (I get the track). Am I doing something wrong or is this problematic? |
Ok, it's normal (icons are from extern and we don't safe those). |
0c319f2
to
d878847
Compare
Fix #1839 #1647
Wait for openlayers/openlayers#3128
Test
Missing some tests and translations