• Resolved mddsharp

    (@mddsharp)


    I just installed this plugin and have a simple map using:

    [leaflet-map lat=26.21796015469915 lng=-77.25585937500001 zoom=4 zoomcontrol]
    [leaflet-marker lat=44.67 lng=-63.61]

    But the marker is not showing. The map lat and lng is though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bozdoz

    (@bozdoz)

    I would guess the marker is off screen? You can fit the bounds of the map to the layers on the map: [leaflet-map fitbounds]
    then set your marker wherever you want.

    Thread Starter mddsharp

    (@mddsharp)

    @bozdoz It’s a cache issue. I use the hummingbird cache plugin and added my map address to exclude and that didn’t work.

    Then, I discovered if I view the page without minification of CSS and Javascript, then the marker shows as intended. But, as soon as I minify again the marker icon is broken.

    Thread Starter mddsharp

    (@mddsharp)

    This is resolved, it was a minification problem of CSS/javascript pages, I had to declare the entire URL to exclude instead of just a PATH.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Simple map not working’ is closed to new replies.