From 5948a8d020e96960726e23868ed80abaa2e9e587 Mon Sep 17 00:00:00 2001 From: Ismail Sunni Date: Tue, 7 Jun 2016 18:31:40 +0700 Subject: [PATCH] Fix wrong order of loading map. --- geonode/maps/templates/leaflet_maps/map_view.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/geonode/maps/templates/leaflet_maps/map_view.html b/geonode/maps/templates/leaflet_maps/map_view.html index 9b102834eda..5fe260d4a0e 100644 --- a/geonode/maps/templates/leaflet_maps/map_view.html +++ b/geonode/maps/templates/leaflet_maps/map_view.html @@ -465,10 +465,6 @@ $(document).ready(function () { - // Populate radio button for background layer - populate_background_layer(background_layers_list, background_layers); - - // Initiate map {% if create %} map = L.map('map', { @@ -483,6 +479,8 @@ }); {% endif %} + // Populate radio button for background layer + populate_background_layer(background_layers_list, background_layers); // Make sortable var list = document.getElementById("layer-list");