Skip to content

Commit

Permalink
Fix leaflet marker path
Browse files Browse the repository at this point in the history
  • Loading branch information
EricSoroos committed May 14, 2024
1 parent f952b7c commit 8df35e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/geoview/public/js/geojson_preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* global preload_resource, ckan, proj4, $, L */
// geojson preview module
ckan.module('geojsonpreview', function (jQuery, _) {
return {
Expand Down Expand Up @@ -32,7 +33,7 @@ ckan.module('geojsonpreview', function (jQuery, _) {
self.map = ckan.commonLeafletMap('map', this.options.map_config);

// hack to make leaflet use a particular location to look for images
L.Icon.Default.imagePath = this.options.site_url + 'js/vendor/leaflet/dist/images';
L.Icon.Default.imagePath = this.options.site_url + 'js/vendor/leaflet/dist/images/';

jQuery.getJSON(preload_resource['url']).done(
function(data){
Expand Down

0 comments on commit 8df35e6

Please sign in to comment.