Skip to content

Frontend marker not the same as the marker being shown on the admin site #264

Open
@kevinopix

Description

@kevinopix

So after i have done everything right, and its all working good, on displaying the map on the front-end, this is the HTML code i used
{% load leaflet_tags %}
{% leaflet_css %}
{% leaflet_js %}

{{ building.osm_id }}

{% leaflet_map "main" callback="map_init" %}
<script type="text/javascript"> function map_init(map, options) { // get point lat and lon var lon = "{{ building.geometry.x }}"; var lat = "{{ building.geometry.y }}"; // zoom to point & add it to map map.setView([lat, lon], 5); L.marker([lat, lon]).addTo(map); } </script>

This produces a marker like it is supposed to, and this is the marker i am talking about

Screenshot from 2019-11-07 14-12-04

Now my issue is that this marker is not the same as the marker that is shown in the admin side, which i am interested in. Check out the marker on the admin side
Note the number at the top is the osm_id which should be the same as the number being displayed on top of the frontend
Screenshot from 2019-11-07 14-16-55

Kindly check this issue out and any help on this project would be much appreciated.

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