--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/8523e9ba-a900-48ff-be96-599496cf749a%40googlegroups.com.
android.xapplication=<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="YOUR_ANDROID_API_KEY"/>
I havent the problem on the simulator but only on the device .the map wont load the first time on the device and load the second time fast.
I will check the permissions widh keys do i need for the android version
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/528f3011-91c8-4084-b383-a8295fb9de71%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/036a50bf-29ec-4cab-8d71-cd4839e3b0fd%40googlegroups.com.
public void start() {
l= 0;
if(current != null){
current.show();
return;
}
hi = new Form("TalkingGps", new BorderLayout());
MapContainer cnt = new MapContainer();
// cnt = new MapContainer(provider);
// String tileLayer= "http://t1.openseamap.org/seamark/";
// cnt.addTilelayer(tileLayer);
cnt.addLongPressListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
t.setSelectedIndex(0);
}
});
Kaart= BoxLayout.encloseYCenter(cnt);
cnt.addTapListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
if ((routenw == true)) {
int x = evt.getX()-cnt.getAbsoluteX(); ;
int y = evt.getY()-cnt.getAbsoluteY();
Coord positie = cnt.getCoordAtPosition(x,y);
double Latt = positie.getLatitude();
double Lonn = positie.getLongitude();
nwrtetabel(Latt,Lonn);
try {
cnt.addMarker(EncodedImage.create("/maps-pin2.png"), positie , "Marker At","punt", new ActionListener() {
public void actionPerformed(ActionEvent evt) {
Dialog.show("Marker At", "Marker At" , "OK", null);
}
});
Integer zm = 17;
cnt.zoom(new Coord(Latt, Lonn ), zm);
cnt.setShowMyLocation(true);
markerLookup.put(1,"punt");
} catch(IOException err) {
// since the image is iin the jar this is unlikely
err.printStackTrace();
}
} else if (addm == true ) {
addm = false ;
int x = evt.getX()-cnt.getAbsoluteX(); ;
int y = evt.getY()-cnt.getAbsoluteY();
Coord positie = cnt.getCoordAtPosition(x,y);
double Latt = positie.getLatitude();
double Lonn = positie.getLongitude();
nwrtetabel(Latt,Lonn);
try {
cnt.addMarker(EncodedImage.create("/maps-pin.png"), positie , "Marker At","punt", new ActionListener() {
public void actionPerformed(ActionEvent evt) {
Dialog.show("Marker At", "Marker At" , "OK", null);
}
});
Integer zm = 17;
cnt.zoom(new Coord(Latt, Lonn ), zm);
cnt.setShowMyLocation(true);
markerLookup.put(1,"punt");
} catch(IOException err) {
// since the image is iin the jar this is unlikely
err.printStackTrace();
}
}
}
} );
hi.addComponent(BorderLayout.CENTER, Kaart );
hi.show();
}
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/a37b1731-929d-49fc-ae68-22d71b68e5f9%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/a05c27e5-fcc6-4c14-bb40-66c988ee9d0f%40googlegroups.com.
Thanx steve this worked for me
Is there a way to switch between google maps and openstreet map. I tried with the openstreetmapprovider but it still shows the google maps.
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/28370c48-a996-484c-bbad-39fe7c3f6cda%40googlegroups.com.