menduh / gmlibrary

Automatically exported from code.google.com/p/gmlibrary
0 stars 0 forks source link

JS code error in CenterMapTo #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create a GMMarker1.Add()
2. GMMarker1[0].Draggable:= True;
3. GMMarker1[0].Icon:= 'http://www.google.com/mapmaker/mapfiles/marker-k.png';
4. GMMarker1[0].CenterMapTo;

What is the expected output? What do you see instead?

The map centes goes to point center, but I get e JS error.

What version of the product are you using? On what operating system? IE
Version?

gmlib 1.5 + Win764x + IE 11

Please provide any additional information below and/or a demo program to
reproduce the error.

Original issue reported on code.google.com by eng.artu...@gmail.com on 24 Feb 2015 at 7:34

GoogleCodeExporter commented 8 years ago
Hi 

This work perfectly, try whit it

var
  Mk: TMarker;
begin
  Mk := GMMarker1.Add;
  Mk.Draggable := True;
  Mk.Icon := 'http://www.google.com/mapmaker/mapfiles/marker-k.png';
  Mk.CenterMapTo;
end;

Regards

Original comment by cadet...@gmail.com on 25 Feb 2015 at 5:57