-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A possible issue with Multi-geometries and Name and Description inside KML Plugin? #215
Comments
You should have a look at KML specs and provide a jsfiddle reproducing the bug ;) |
I looked at the KML specs and while the words appear to be in English, I On Mon, Mar 28, 2016 at 9:42 AM, b_b [email protected] wrote:
|
Also, is there a reason the description is not shown if there's no name for On Mon, Mar 28, 2016 at 9:45 AM, Bill Oberacker [email protected]
|
Mainly historical reason, see : Maybe we can change this, feel free to provide a pull request for that. |
Thanks! I am trying to create a fiddle for the original issue... how do I add your KML plugin? Is there a CDN link? |
No CDN for now, there is a PR for that on cdnjs/cdnjs#6137 but it's done yet, so you have to use direct link to raw file from here. |
Here is the fiddle for the initial question: http://fiddle.jshell.net/kybp2dcd/32/ The KML with name and description OUTSIDE of the multigeometry is at: When you try to click on the marker (or the polygon) you don't see the name or description. Thanks. |
Hmm strange but your fiddle doesn't show any map... am i missing something ? |
For some reason there's an SSL error on the site for the leaflet code. Let On Mon, Mar 28, 2016 at 11:53 AM, b_b [email protected] wrote:
|
I removed the "https" bits... try this link: https://fiddle.jshell.net/kybp2dcd/38/ On Mon, Mar 28, 2016 at 12:00 PM, Bill Oberacker [email protected]
|
Still no map... |
HMMM Then I don't really know what to do. Is there a fiddle you use when demoing On Mon, Mar 28, 2016 at 1:57 PM, b_b [email protected] wrote:
|
Can you verify that when you go to the fiddle you are connecting to fiddle.net over the standard http port and not the https port? (Meaning, make sure it's http and not https). I just realized I copied the wrong address... try this one: |
I have the same problem. I'm using the url: http://gis.hamweather.net/kml/hwadv_all.kml fi you want to reproduce the problem. So I hacked the parsePlacemark function to remove the recursion (after line 247):
I'm not sure if this conforms to the KML spec... |
(Using KML Plugin version from Master)
We have an internal service that creates a KML which we try to display on our map. This KML has a name and description element inside of a Placemark that is defined as a Multigeometry. It seems that inside the parsePlacemark it recurses back into the parsePlacemark function with the "Multi-type" elements. These elements, subsequently don't have the Name and/or Description fields.
Is this non-standardized KML which I just have to account for, or is this an issue with the KML plugin?
I do not have a KML sample which I can post here as it's on a closed system. I could, however, try to fashion a sample, but basically it's just a
<Placemark>
element with<Name>
and<Description>
and<Multigeometry>
and children (at the same level).Thanks.
The text was updated successfully, but these errors were encountered: