Skip to content

Popup and Transform support #7

@pedrobullo

Description

@pedrobullo

Request for support these features:

OL transform feature example:

var feature = new ol.Feature();
var point = new ol.geom.Point([item.long, item.lat]);
feature.setGeometry(point.transform('EPSG:4326', 'EPSG:3857'));

Popup feature example:

   var map = new ol.Map(...);
   var popup = new ol.Overlay.Popup();
   map.addOverlay(popup);

    //Event on click
    map .on('singleclick', (evt) => {
      var coordinate = evt.coordinate;
      popup.show(coordinate, "My coord: " + coordinate);
    });

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions