JavaScript, PHP, html5, CSS, Rewrite, GMap, ...

Kategorie
  • CSS (98)
  • Docker (3)
  • Github (1)
  • GMap (47)
  • Hosting (1)
  • htaccess (18)
  • HTML (70)
  • HTTP (8)
  • Intellij IDEA (6)
  • JavaScript (210)
  • jQuery (27)
  • JSON (3)
  • Leaflet (7)
  • Linux (46)
  • MySQL (33)
  • Nauka (2)
  • Nodejs (4)
  • Opera (1)
  • Perl (17)
  • PHP (139)
  • PostgreSQL (34)
  • Programy (11)
  • React (6)
  • Rejestr (3)
  • Rewrite (9)
  • Smarty (27)
  • SQL (19)
  • SQL Server (10)
  • SVG (4)
  • System (11)
  • Telefony (6)
  • VBA (7)
  • VBSCRIPT (32)
  • Windows (24)
  • Wordpress (24)
  • WYSIWYG (6)
  • XML (6)

Tag: getContainer

25 Mar 2009

Utworzenie div i dodanie do mapy

var div = document.createElement('div');
div.style.width = '1px';
div.style.height = '1px';
div.style.background = 'gray';
map.getContainer().appendChild(div);
appendChild createElement Div getContainer GMap map
7 Lut 2009

Zmiana rozmiaru mapy

map = new GMap2(document.getElementById("mapcan"));

map.getContainer().style.width = 500+'px';
map.getContainer().style.height = 500+'px';
map.checkResize();

Kod należy umieścić w funkcji JS.
Wywołanie funkcji powoduje zmiane rozmiaru mapy.

checkResize getContainer getElementById GMap height style width
Copyright © | kodyWiG Theme