Skip to content

Demo: KML example URL from documentation does not load #178

@paodb

Description

@paodb

Describe the bug

The KML example URL used in the demo is not rendering. This URL was taken from the google documentation.

Expected behavior

The KML data should load and display the features defined in the file.

Image

Minimal reproducible example

Go to https://addonsv25-staging.flowingcode.com/googlemaps/kml
or run the example as in the demo:

GoogleMap gmaps = new GoogleMap(apiKey, null, null);
gmaps.setMapType(MapType.ROADMAP);
gmaps.setSizeFull();

// KML example from official documentation
gmaps.setKml("https://developers.google.com/maps/documentation/javascript/examples/kml/westcampus.kml");

add(gmaps);

Add-on Version

2.4.1-SNAPSHOT

Vaadin Version

14, 24, 25

Additional information

  • The same URL is referenced in the official documentation, but it is not rendered in the example there either.
  • The URL does not work when tested using KML Viewer by providing it directly as a remote URL. However, if the file is downloaded and then uploaded manually into the viewer, it works correctly.

This suggests that the example KML URL may no longer be usable as a remote resource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Inbox (needs triage)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions