This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2"> | |
<Document> | |
<Placemark> | |
<name>Portland</name> | |
<Point> | |
<coordinates>-122.681944,45.52,0</coordinates> | |
</Point> | |
</Placemark> | |
<Placemark> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toTitleCase(str){ | |
str = str.toUpperCase(); | |
str = str.replace(/\S*/g, function(txt){ | |
if(!["DEL","LES","LA","DE", "EL", "I"].includes(txt)){ | |
const re = /(.*)([L|D]')(.*)/i; | |
if(txt.match(re)){ | |
if("" !== txt.match(re)[1]){ | |
return toTitleCase(txt.match(re)[1]) + txt.match(re)[2].toLowerCase() + toTitleCase(txt.match(re)[3]); | |
}else{ | |
return txt.match(re)[2].toLowerCase() + toTitleCase(txt.match(re)[3]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.vscode | |
/node_modules/ | |
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Trying to hide the layers| CartoDB.js</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { | |
height: 100%; |