import { h, Html, Var } from 'lib/rx'
import * as rx from 'lib/rx'
import * as request from 'request'
import * as modal from 'ui/modal'
import * as route from 'route'
import { Map } from 'models/map'
import * as markerModel from 'models/marker'
import * as M from 'lib/leaflet'
import * as footer from 'pages/map/footer'
import * as markerView from 'pages/map/marker'
import * as markerForm from 'pages/map/markerForm'
import * as L from 'lib/loadable'
import * as layout from 'ui/layout'
export function view(id: string): Html {
return rx.withState3, L.Loadable, boolean>(
[L.loading, L.loading, false],
(mapVar, markersVar, readOnlyVar) => {
request
.get