Skip to content

Commit

Permalink
bugfixing lat lon error
Browse files Browse the repository at this point in the history
  • Loading branch information
tursics committed Aug 21, 2017
1 parent 4c92f79 commit 7a470e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karte-deutschland.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ var marker = {

var that = this;
$.each(data, function (key, val) {
if ((typeof val.lat !== 'undefined') && (typeof val.lng !== 'undefined')) {
if ((typeof val.lat !== 'undefined') && (typeof val.lng !== 'undefined') && val.lat && val.lng) {
var marker = L.marker([parseFloat(val.lat), parseFloat(val.lng)], {
data: val,
format: cityData.printerlabel,
Expand Down

0 comments on commit 7a470e5

Please sign in to comment.