Easy example on how to put marker on a d3.js map.
You got 2 options:
- using d3.geo.path() which does all the work for you
- using svg circles and translating them via projection(d.geometry.coordinates)
| #! /usr/bin/env bash | |
| # ansi colors | |
| bold='\033[1m' | |
| red='\033[0;31m' | |
| green='\033[0;32m' | |
| yellow='\033[1;33m' | |
| blue='\033[0;34m' | |
| reset='\033[0m' |
| using UnityEngine; | |
| [RequireComponent( typeof(Camera) )] | |
| public class FlyCamera : MonoBehaviour { | |
| public float acceleration = 50; // how fast you accelerate | |
| public float accSprintMultiplier = 4; // how much faster you go when "sprinting" | |
| public float lookSensitivity = 1; // mouse look sensitivity | |
| public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input | |
| public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable |
| package main | |
| import "fmt" | |
| // WithPrefix | |
| type prefixOption struct{} | |
| func WithPrefix() interface { | |
| GetOption |
Easy example on how to put marker on a d3.js map.
You got 2 options: