/maps

Interactive maps, using code to operate.

Primary LanguageHTMLApache License 2.0Apache-2.0

maps

Interactive maps, using code to operate. lishiyu.com/maps/

original instructions

map object

  • map.setCenter(positionObject)
  • map.getCenter()
  • map.setZoom(i)

infoWindow object

  • info.setPosition(positionObject)
  • info.setContent(text)

global function

  • POS(x, y)  //get the position object
  • locate()

short instructions

  • set(x, y)   //the same as map.setCenter(POS(x, y))
  • get()        //the same as map.getCenter()
  • zoom(i)    //the same as map.setZoom(i)
  • me()        //the same as locate()
  • cls()         //the same as console.clear()

one more thing

Just start, long way to go.