xJs / lib / gMaps.mli

open Js
open Std

module MapTypeId : sig
  type t = HYBIRD | ROADMAP | SATELLITE | TERRAIN
  val to_js : t -> Unsafe.any
end

module LatLng : sig 
  class type t = object end 
end

module MapOptions : sig
  include Base.OptionFields.S with type key = string and type value = Unsafe.any
  val center : LatLng.t Js.t -> options
  val zoom : int -> options
  val mapTypeId : MapTypeId.t -> options
end

module Map : sig class type t = object  end end

module MarkerOptions : sig
  include Base.OptionFields.S with type key = string and type value = Unsafe.any
  val position : LatLng.t Js.t -> options
  val map : Map.t Js.t -> options
  val title : string_t -> options
end

module Marker : sig class type t = object  end end

class type t = object
  method _LatLng : (float -> float -> LatLng.t Js.t) constr readonly_prop
  method _Map : (Dom_html.element Js.t -> MapOptions.t -> Map.t Js.t) constr
    readonly_prop
  method _Marker : (MarkerOptions.t -> Marker.t Js.t) constr readonly_prop
end

val load : sensor:bool -> key: string -> ?callback:string -> unit -> unit
val get : unit -> t Js.t
val latlng : t Js.t -> float -> float -> LatLng.t Js.t
val map : t Js.t -> Dom_html.element Js.t -> MapOptions.t -> Map.t Js.t
val marker : t Js.t -> MarkerOptions.t -> Marker.t Js.t
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.