Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 4 Jahren, 9 Monaten
Letzter Beitrag:
vor 4 Jahren, 9 Monaten
Beteiligte Autoren:
Paul Murray, Arie

MapControl vs. geoRunApp

Startbeitrag von Paul Murray am 30.12.2012 20:36

Greetings All,

I have some code that is supposed to display the map of an airport (either JFK or EWR) and then add two markers to it.

When I run the following code, I see the map correctly centered on either JFK or EWR. I think I am looking at the native mapping application started by the command geoRunApp.

But I do NOT see the markers.

When I press the back up button on the device, instead of going back to the calling window, it seems to be displaying my map control "MAP_FT_MAP" and it says Google in the lower left corner.

And here I DO see the two markers.

But I don't see a map. I just see a grid.

I have tried this without using geoRunApp but I always end up with a grid and no map.

Below is the code that I am currently using...

Any guidance will really be appreciated.

Thanks!! Paul


// Delete all the markers from the control
MapDeleteAll()

// Returns the point of the map corresponding to the current position of the user
MyPosition is géoPosition

IF gsAirport = "JFK" THEN
MyPosition..Latitude = grVAA_JFK_LAT
MyPosition..Longitude = grVAA_JFK_LONG
ELSE IF gsAirport = "EWR" THEN
MyPosition..Latitude = grVAA_EWR_LAT
MyPosition..Longitude = grVAA_EWR_LONG
END


IF ErrorOccurred = False THEN
geoRunApp(MyPosition,18,geoMap2D)
END

MyMarker is Marker
MyMarker..Position = MyPosition
MapAddMarker(MAP_FT_Map,MyPosition)

CarPosition is géoPosition
CarPosition..Latitude = 40.64370
CarPosition..Latitude = -73.78420
CarMarker is Marker
CarMarker..Position = CarPosition
CarMarker..Image = "1234.png"

MapAddMarker(MAP_FT_Map,CarMarker)

MapDisplayPosition(MAP_FT_Map, MyPosition)

Antworten:

Paul, you already read this post some time ago.
http://27130.foren.mysnip.de/read.php?27131,132341,132341#msg-132341
It looks like the same problem to me
Maybe you can play around a bit with the api-key?

von Arie - am 31.12.2012 10:13
Thanks, Arie!!

I figured that there was a problem with my API key. So I signed up for a V2 API key. Maybe it the release key. You something about signing the app with a release key and not a development key. I will check into that.

Paul

von Paul Murray - am 31.12.2012 17:15
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.