Skip to content
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

KML support for GroundOverlay and ScreenOverlay #7255

Closed
raiyni opened this issue Sep 13, 2017 · 12 comments
Closed

KML support for GroundOverlay and ScreenOverlay #7255

raiyni opened this issue Sep 13, 2017 · 12 comments
Labels

Comments

@raiyni
Copy link
Contributor

raiyni commented Sep 13, 2017

The KML parser lacks support for https://developers.google.com/kml/documentation/kmlreference#groundoverlay and https://developers.google.com/kml/documentation/kmlreference#screenoverlay

GroundOverlay is an overlay image that moves with the map.

ScreenOverlay is an overlay image that stays fixed in view.

It would be a job. Probably convert each one to a Control/Overlay but that could lead to export problems. Or a fixed image feature but that wouldn't solve the problem a screenoverlay creates.

@bartvde
Copy link
Member

bartvde commented Sep 13, 2017

#2941

@raiyni raiyni closed this as completed Sep 13, 2017
@raiyni raiyni reopened this Sep 13, 2017
@raiyni
Copy link
Contributor Author

raiyni commented Sep 13, 2017

Wonder why my search didn't bring that up. Still leaves out ScreenOverlay but they are decently similar.

@raiyni
Copy link
Contributor Author

raiyni commented Sep 14, 2017

What would be the preferred method of doing this?

Passing the map object into ol.format.KML.readFeatures so that an overlay/control can be attached? Or make it a second function call on the KML to return the overlay/control? Or something different like creating a new feature type so that it can be hidden with the layer and exported with KML export?

@Skuriles
Copy link

Are there any news on this issue?

@raiyni
Copy link
Contributor Author

raiyni commented Jun 19, 2018

No immediate progress. Been occasionally working on it in my downtime.

@skyval
Copy link

skyval commented Mar 9, 2019

Are there any news on this issue?

@raiyni
Copy link
Contributor Author

raiyni commented Mar 9, 2019

I stopped progress once the transition to v5 started and in the meantime our mapping requirements at work have slowed down.

@skyval
Copy link

skyval commented Mar 13, 2019

Ok, I understand... I place image using ImageStatic and use coordinates from KML in imageExtent, but I can't rotate it. Is in there an any option to rotete ImageStatic?

@stale
Copy link

stale bot commented May 22, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 22, 2019
@stale stale bot closed this as completed May 29, 2019
@mike-000
Copy link
Contributor

#4949 (comment)

@eric-g-97477
Copy link

I would like to see this ticket reopened in the hopes that someone can resolve it.

@mike-000
Copy link
Contributor

@eric-g-97477 This should be possible with support for a transform matrix in projections as in #15402 making it much simpler https://jsfiddle.net/mthw1zjy/ than the method in #4949 (comment) which required integration with proj4. All that would then be needed would be a readGroundOverlay method similar to readCamera using OpenLayers XML parsing to obtain the required properties of each overlay (name, west, south, east, north, href, rotation, drawOrder, color) to create a layer group of overlays.

Support for a color option in ImageStatic, similar to Icon and fill-pattern, would be needed in some cases such as the example in https://developers.google.com/kml/documentation/kmlreference#groundoverlay

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<GroundOverlay>
   <name>GroundOverlay.kml</name>
   <color>7fffffff</color>
   <drawOrder>1</drawOrder>
   <Icon>
      <href>http://www.google.com/intl/en/images/logo.gif</href>
      <refreshMode>onInterval</refreshMode>
      <refreshInterval>86400</refreshInterval>
      <viewBoundScale>0.75</viewBoundScale>
   </Icon>
   <LatLonBox>
      <north>37.83234</north>
      <south>37.832122</south>
      <east>-122.373033</east>
      <west>-122.373724</west>
      <rotation>45</rotation>
   </LatLonBox>
</GroundOverlay>
</kml>

In that example both the image and color have semi-transparency which would need handling as in #15295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants