Skip to content

Issue regarding _latLng #8

@Ignasimg

Description

@Ignasimg

The issue is that whenever choosing a place on the map, the latitude and longitud will not be the ones you choosen but the ones google assign to the place (which sometimes is even incorrect). It doesn't make a big difference for cities / countries etc... but it can really piss off if you try to select a certain building upon a university campus, factory or large complex.

Proposal of solution:

1- in getLatLng()
add _latLng == null on the if

2- in initMap()
add _latLng = pos; right under var pos = e.latLng;

with this you shall be able to get the real latitude and longitude you selected from the map, but there's still the latitudeInput and longitudeInput options that take the values of the google place.

If the owner is interested I'll submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions