Google Maps Store Locator - modify default example

匿名 (未验证) 提交于 2019-12-03 07:36:14

问题:

I'm trying to create a store locator based off the static csv example used by Google http://storelocator.googlecode.com/git/examples/panel.html

I have recreated this example on my own server but if I edit the csv file in any way, even if I just remove some of the rows it returns a blank map.

I was hoping I could use this example as a template by replacing the default values in the csv file with my own(http://storelocator.googlecode.com/git/examples/medicare.csv). There is clearly more to it than I assumed and was hoping someone could point me in the right direction in terms of why I can't just edit the fields in the csv with my own values and what else should I be editing?

This is their main page http://storelocator.googlecode.com/git/index.html

I have been searching online for a way to do this and I have now asked this question here as I am struggling to find an answer.

回答1:

It seems when I opened in excel it was reformatting the csv file and causing it not to work. When I edit the fields from the csv in notepad++ it works. Apologies for the useless question. Thanks Dr Molle for bringing this to my attention.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!