Revize c3fac173
Přidáno uživatelem Ondřej Fibich před téměř 6 roky(ů)
application/views/js/devices_show.php | ||
---|---|---|
$("#"+name).addClass("dispNone");
|
||
}
|
||
});
|
||
|
||
window.mapycz_dev = function (divId, gpsx, gpsy)
|
||
{
|
||
var center = SMap.Coords.fromWGS84(gpsy, gpsx);
|
||
var m = new SMap(JAK.gel(divId), center, 17);
|
||
m.addDefaultLayer(SMap.DEF_BASE).enable();
|
||
m.addDefaultControls();
|
||
|
||
var markerLayer = new SMap.Layer.Marker();
|
||
markerLayer.addMarker(new SMap.Marker(center, "myMarker", {}));
|
||
m.addLayer(markerLayer);
|
||
markerLayer.enable();
|
||
};
|
||
|
Také k dispozici: Unified diff
Issue #1105: map support fixes