Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Week 2 assignment - Yang Wang #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YangWangPENN
Copy link

No description provided.

var jsonToCsv = function(json) { console.log(json); };
var jsonToCsv = function(json){console.log(json);};

let healthCentersInfo = [['LNG','LAT','OBJECTID','NAME','ORGANIZATION','ZIP','PHONE','WEBSITE','DENTAL_PHONE','FULL_ADDRESS']];
Copy link
Member

Choose a reason for hiding this comment

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

It'd be good to not have to type out each of these keys manually.

Take a look how at this: Object.keys(healthCenters[0]) Does all the work for you!

};

var icon1 = L.icon({
iconUrl:'D:/2019Spring/CPLN692/Data/cpln692-week2/assignment/images/marker-icon.png',
Copy link
Member

Choose a reason for hiding this comment

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

When I try to run this on my computer. It does not work because this pathway is absolute and not relative.

If you change it to... iconUrl:'images/marker-icon.png',

it works!

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