Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Added OpenStreetMap layer to map (#215) #305

Merged
merged 5 commits into from
Sep 27, 2012
Merged

Added OpenStreetMap layer to map (#215) #305

merged 5 commits into from
Sep 27, 2012

Conversation

mitjap
Copy link
Contributor

@mitjap mitjap commented Sep 24, 2012

@@ -1,5 +1,7 @@
$(document).ready(function () {
var element = document.getElementById('map_canvas');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this variable? You are using it only once? And you can use jQuery syntax.

var nodeName = $('<p/>').text(node.name).append(' | ');
var nodeWebsite = $('<a/>').prop('href', node.url).text(gettext("more info"));
var nodeWebsite = $('<a/>').prop('href', node.url).text(gettext('more info'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, user exposed strings we have in ". That's the main difference. The idea is that you can fast search for all strings which are visible to users. And other strings which are used internally.

@mitjap
Copy link
Contributor Author

mitjap commented Sep 27, 2012

Added TODO, switched default layer and fixed quotes

mitar added a commit that referenced this pull request Sep 27, 2012
Added OpenStreetMap layer to map (#215)
@mitar mitar merged commit 3c265d0 into wlanslovenija:master Sep 27, 2012
@mitar
Copy link
Member

mitar commented Sep 27, 2012

I cleaned code a bit. Check what I changed.

@mitjap
Copy link
Contributor Author

mitjap commented Sep 27, 2012

Changes reviewed :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants