Skip to content

Please move marker and redraw map when Latitude/Longitude input values change #21

@Toutouwai

Description

@Toutouwai

If users are entering Lat/Lng values into the inputs it would be good if the marker was moved and the map redrawn to reflect those values.

In InputfieldMapMarker.js:

$lat.add($lng).change(function() {
    var latlng = new google.maps.LatLng($lat.val(), $lng.val());
    marker.setPosition(latlng);
    map.setCenter(latlng);
});

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