Skip to content

Homework2#30

Open
XintianLi wants to merge 2 commits into
MUSA611-CPLN692-spring2020:masterfrom
XintianLi:master
Open

Homework2#30
XintianLi wants to merge 2 commits into
MUSA611-CPLN692-spring2020:masterfrom
XintianLi:master

Conversation

@XintianLi

Copy link
Copy Markdown

No description provided.

Comment thread assignment/index.html
if (NewhealthCenters[8]!=='N/A') {
L.marker([NewhealthCenters[i][1], NewhealthCenters[i][0]], {icon: myIcon}).bindPopup(NewhealthCenters[i][3]).openPopup().addTo(map);
} else {
L.marker([[NewhealthCenters[i][1], NewhealthCenters[i][0]]).bindPopup(popupContent[i][3]).openPopup().addTo(map);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The code runs into an error here, would you please check this? Many thanks! @moradology

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks to me like there's one too many brackets. Try this:

 L.marker([NewhealthCenters[i][1], NewhealthCenters[i][0]]).bindPopup(popupContent[i][3]).openPopup().addTo(map);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants