Skip to content

Instantly share code, notes, and snippets.

@Xatpy
Xatpy / index.html
Created March 16, 2015 18:34
Infowindows with several layers - CartoDB.js
<!DOCTYPE html>
<html>
<head>
<title>Infowindows several 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%;
@Xatpy
Xatpy / index.md
Created March 12, 2015 12:11
Notes new Editor design : From on-premise offline perspective

Notes:

  • MapOptions: 4: New mobile models. It's from local resources, isn't it? No Internet connection.
  • MapOptions: 4: Ei,maybe it's a good moment to share with your colleagues. If there isn't Internet...who is going to share it?
  • LayerDesign: 1: Meaning little eye?
  • LayerDesign: 12: Offline basemaps..i.e.: Stamen, Here. And Google basemaps... (from GCE)?
  • LayerDesign: 20: Offline markers. (I've seen it from CartoCSS)
  • LayerLegend: 7: Legends from local?. And Upload file or Dropbox
  • Overlay: 2: Images. But if there isn¡t Internet...it can't be imported from URL (external)
  • WizardElem: Markers...are from URL? What's bitmap marker selected?
@Xatpy
Xatpy / index.html
Last active August 29, 2015 14:16
Read data from infowindow
<!DOCTYPE html>
<html>
<head>
<title>Read data from infowindow | 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: 90%;
@Xatpy
Xatpy / index.html
Last active August 29, 2015 14:16
Force GMaps and close infowindow clicking on the basemap (with GMaps)
<!DOCTYPE html>
<html>
<head>
<title>Close infowindow clicking on the basemap (with GMaps)| 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%;
@Xatpy
Xatpy / index.html
Last active August 29, 2015 14:16
Close infowindows clicking on the basemap
<!DOCTYPE html>
<html>
<head>
<title>Close infowindow clicking on the basemap | 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%;
@Xatpy
Xatpy / index.html
Last active August 29, 2015 14:16
Counting words from CartoDB
<!DOCTYPE html>
<html class="en">
<head>
<meta charset="utf-8">
<title>Counting words from CartoDB</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
@Xatpy
Xatpy / index.md
Last active August 29, 2015 14:16
CartoDB development - How to create an organization
  1. In your Vagrant:

cd workspace/cartodb && vagrant up && vagrant ssh cd /vagrant

  1. Create a new user:

bundle exec rake cartodb:db:setup SUBDOMAIN=xatpy EMAIL=xatpy@gmail.com PASSWORD=xatpy SUBDOMAIN=xatpy

  1. Create the new organization (using the new user):

bundle exec rake cartodb:db:create_new_organization_with_owner ORGANIZATION_NAME=theteam ORGANIZATION_SEATS=5 ORGANIZATION_QUOTA=100000000 USERNAME=xatpy

  1. Edit /etc/hosts, adding:

192.168.33.10 theteam.localhost.lan

@Xatpy
Xatpy / index.html
Created February 19, 2015 16:59
Test events
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test events</title>
<script type="text/javascript">
function TouchStartResponse(event) {
document.getElementById("dvTouchStatus").innerHTML += "TouchStart<br />";
}
function TouchEndResponse(event) {
@Xatpy
Xatpy / index.html
Last active August 29, 2015 14:15
Leaflet touch test
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Quick Start Guide Example</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
@Xatpy
Xatpy / index.html
Last active August 29, 2015 14:15
T3chfest
<!DOCTYPE html>
<html>
<head>
<title>T3chfest | 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%;