Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter vandestouwe

    (@vandestouwe)

    Problem is also in the latest version not resolved. The issue seems to be that the link to the custom icon is not read properly.

    SOLUTION:

    Edit the file ‘wp-gpx-maps/js/WP-GPX-Maps.js’ in line 663:

    
    660: if (waypointIcon!='')
    661: {
    662: 	icon = L.icon({
    663: 		iconUrl: 'waypointIcon',
    664: 		iconSize:     [32, 32], // size of the icon
    665: 		iconAnchor:   [16, 16], // point of the icon which will correspond to marker's location
    666: 	});
    667: }
    

    And remove de quote:

    
    660: if (waypointIcon!='')
    661: {
    662: 	icon = L.icon({
    663: 		iconUrl: waypointIcon,
    664: 		iconSize:     [32, 32], // size of the icon
    665: 		iconAnchor:   [16, 16], // point of the icon which will correspond to marker's location
    666: 	});
    667: }
    

    Regards!

    Nigel

    (@canuck069)

    Many thanks, that resolved the issue.

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