AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Projekte Google Maps über COM (Component Object Model)
Thema durchsuchen
Ansicht
Themen-Optionen

Google Maps über COM (Component Object Model)

Ein Thema von Thom · begonnen am 23. Dez 2010 · letzter Beitrag vom 22. Mai 2022
Antwort Antwort
Seite 6 von 10   « Erste     456 78     Letzte »    
BBoy

Registriert seit: 17. Jan 2007
418 Beiträge
 
Delphi 10 Seattle Professional
 
#1

AW: Google Maps über COM (Component Object Model)

  Alt 29. Jan 2012, 09:03
Mit Javascript kenne ich mich nicht aus, da muss ich wohl warten bis du das in deine api eingebaut hast... Was denkst du wann man damit rechnen kann?

Derweil könnte man sich ja so behelfen:
Mit jedem Klick auf die Karte markiert man ein Punkt für ein Polygon. Ein doppelklick beendet das und wenn man nun ENTF drückt, wird geprüft welche Wegpunkte sich innerhalb des Polygons befinden und diese werden dann gelöscht.

Wie könnte man das verwirklichen? Vor allem wie hat die Berechnung auszusehen ob Webpunkte innerhalb des Polygons liegen?

Geändert von BBoy (29. Jan 2012 um 09:22 Uhr)
  Mit Zitat antworten Zitat
sterna48

Registriert seit: 27. Nov 2011
3 Beiträge
 
#2

AW: Google Maps über COM (Component Object Model)

  Alt 16. Feb 2012, 18:06
hi,
I am using D2009, and have tried to translate my module, but I have got some errors from AnonymousMethodsTools.pas:

D:\delphi\TMapClass\GoogleMaps\Source\JScript\Anon ymousMethodsTools.pas(42,24): error E2015: E2015 Operator not applicable to this operand type
D:\delphi\TMapClass\GoogleMaps\Source\JScript\Anon ymousMethodsTools.pas(53,24): error E2015: E2015 Operator not applicable to this operand type
D:\delphi\TMapClass\GoogleMaps\Source\JScript\Anon ymousMethodsTools.pas(64,24): error E2015: E2015 Operator not applicable to this operand type

Line 42 (same as 53, 64):
Meth:=Intf as TObject;

BR Sterna
  Mit Zitat antworten Zitat
Thom

Registriert seit: 19. Mai 2006
570 Beiträge
 
Delphi XE3 Professional
 
#3

AW: Google Maps über COM (Component Object Model)

  Alt 16. Feb 2012, 18:30
Sorry. Delphi 2009 was the first version that supports anonymous methods. It may be that not all options were available.
Disable support for anonymous methods in gmConfig.inc and use normal methods:
Delphi-Quellcode:
[...]
{$IFDEF DELPHI2010_UP} //<- old: DELPHI2009_UP
  {$DEFINE USE_ANONYMOUS_METHODS}
  [...]
If I have something more time I will install Delphi 2009 and investigate the problem.
Thomas Nitzschke
Google Maps mit Delphi

Geändert von Thom (16. Feb 2012 um 22:20 Uhr)
  Mit Zitat antworten Zitat
sterna48

Registriert seit: 27. Nov 2011
3 Beiträge
 
#4

AW: Google Maps über COM (Component Object Model)

  Alt 16. Feb 2012, 18:56
Thx very much! Now it is working ok.
Cheers
  Mit Zitat antworten Zitat
Thom

Registriert seit: 19. Mai 2006
570 Beiträge
 
Delphi XE3 Professional
 
#5

AW: Google Maps über COM (Component Object Model)

  Alt 16. Feb 2012, 19:53


Edit:
Interface-to-object casts works only with Delphi 2010 and newer.
In the new framework version is also a solution for Delphi 2009.
Thomas Nitzschke
Google Maps mit Delphi

Geändert von Thom (16. Feb 2012 um 22:34 Uhr)
  Mit Zitat antworten Zitat
jonathan

Registriert seit: 16. Feb 2012
21 Beiträge
 
#6

AW: Google Maps über COM (Component Object Model)

  Alt 24. Feb 2012, 12:36
Hallo Thom,

vorab erst mal ein dickes Lob für deine tolle Arbeit!

Ist es denn inzwischen irgendwie möglich, das lokale Google-Earth Plug-In zu nutzen?
Die Google-Maps Ansicht ist doch deutlich "träger" und langsamer im Aufbau.
Das ist mir auch schon im TGAgisGoogleMap-Demo aufgefallen: setzt man dort z.B. ein paar hundert Marker, wird die Maps-Ansicht praktisch unbedienbar langsam - die Earth-Ansicht läuft aber flüssig weiter. Ich denke, das ist ein prinzipielles Google Problem und wird bei deiner Umsetzung ebenso auftreten, oder?

Vielen Dank und: weiter so
  Mit Zitat antworten Zitat
PStadler

Registriert seit: 28. Okt 2006
1 Beiträge
 
#7

AW: Google Maps über COM (Component Object Model)

  Alt 9. Mär 2012, 13:43
Hallo Thom,

Ich benutze Ihre Framework 2.0 und konnte damit schon viel schöne Dinge tun.
Etwas habe ich jedoch nicht gefunden. Wie man einen Marker verschieben kann? Java-Script Beispiele habe ich dazu gefunden. Aber
ich würde es gerne in Delphi machen.

mfg Peter
  Mit Zitat antworten Zitat
Thom

Registriert seit: 19. Mai 2006
570 Beiträge
 
Delphi XE3 Professional
 
#8

AW: Google Maps über COM (Component Object Model)

  Alt 9. Mär 2012, 19:05
Hallo Peter,

das freut mich!
Hast Du konkrete JavaScript-Beispiele? In der Regel können diese direkt nach Delphi umgesetzt werden. Geht es zum Beispiel einfach darum, den Marker an einer anderen Stellen anzeigen zu lassen, reicht die Übergabe der neuen Koordinaten über ein TLatLng-Objekt:
Delphi-Quellcode:
 with Script do
    Marker.SetPosition(New(Google.Maps.LatLng(LatNew,LngNew)));
Thomas Nitzschke
Google Maps mit Delphi
  Mit Zitat antworten Zitat
Peter.Stadler

Registriert seit: 30. Sep 2005
Ort: Mödling
21 Beiträge
 
Delphi 10.2 Tokyo Enterprise
 
#9

AW: Google Maps über COM (Component Object Model)

  Alt 9. Mär 2012, 22:07
Hallo Thom,

Hier ist ein Skript, mit dem sich zwei von drei Markern
draggen lassen. So etwas würde ich brauchen!

http://koti.mbnet.fi/ojalesa/exam/draggable.html

mfg Peter
Peter Stadler
  Mit Zitat antworten Zitat
Peter.Stadler

Registriert seit: 30. Sep 2005
Ort: Mödling
21 Beiträge
 
Delphi 10.2 Tokyo Enterprise
 
#10

AW: Google Maps über COM (Component Object Model)

  Alt 10. Mär 2012, 09:37
Hallo,

Ich habe die Lösung gefunden:

var
MarkerOptions: TMarkerOptions;

begin
...
MarkerOptions.Draggable := True;
...

mfg Peter
Peter Stadler
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 6 von 10   « Erste     456 78     Letzte »    


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

(?)

LinkBack to this Thread

Erstellt von For Type Datum
DELPHI | (google maps) This thread Refback 11. Nov 2011 09:07
Twebbrowser HTML tag to UniHTMLFrame1 - uniGUI Discussion Forums This thread Refback 4. Nov 2011 06:52
DoraDev1975: google maps This thread Refback 23. Sep 2011 08:18
delphi osm - Google Search Post #0 Refback 19. Sep 2011 09:02
DoraDev1975: ?&#3636;????? 2011 This thread Refback 11. Sep 2011 16:39
DoraDev1975 This thread Refback 30. Aug 2011 10:13
Untitled document This thread Refback 25. Jun 2011 19:57
Interact with Google Maps in a TWebBrowser from Delphi | Ramblings This thread Refback 26. Jan 2011 05:12
google maps mit delphi link - Google Search This thread Refback 24. Jan 2011 14:24
google maps mit delphi - Google Search This thread Refback 24. Jan 2011 14:20
Untitled document This thread Refback 19. Jan 2011 21:49

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:53 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz