Created
March 3, 2017 20:17
-
-
Save smahood/6d550745e29c0d5c1b8387e4e052f4db to your computer and use it in GitHub Desktop.
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
(ns quickstart.core | |
(:require [ol.Map] | |
[ol.View] | |
[ol.proj] | |
[ol.layer.Tile]) | |
(:import [ol.source.OSM])) | |
(def my-center (ol.proj/fromLonLat #js [37.41 8.82])) | |
(def my-view (ol.View. #js{:center my-center | |
:zoom 4})) | |
(def my-source (OSM.)) | |
(def my-tile (ol.layer.Tile. #js {:source my-source})) | |
(def my-layers #js [my-tile]) | |
(def my-map (ol.Map. #js {:target "map" | |
:layers my-layers | |
:view my-view})) | |
;; WARNING: Use of undeclared Var quickstart.core/OSM at line 14 src\quickstart\core.cljs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment