Cordova Google Maps Plugin Installation For Phonegap

I'm trying to install cordova-plugin-googlemaps for phonegap, but it gives me this error: Failed to install 'cordova-plugin-googlemaps': CordovaError: Uh oh! target destination "/Users/imac/Desktop/app/FFG - City Guide/platforms/ios/FFG - City Guide/Resources/pgm_Localizable.strings" already existsI checked above mentioned folder, but pgm_Localizable.strings not really exists. Please Help Me. Thank You!...Read more

Codenameone Android build with certificate and maps lib fails

While trying to tackle the native map not showing problem, I was experimenting with building Android app with certificates. I used a simplify test where the source contains only: Form hi = new Form("Welcome", new BorderLayout()); MapContainer c = new MapContainer(); hi.add(BorderLayout.CENTER, c);;, and relevant build hints: more

How to show marker with text in map in codenameone

I am doing a sample on Map and in this i want to show marker along with text. for that i used below code.MapContainer mapContainer = new MapContainer("xxxxxxxxxxxxxxxxxxxxxx");Coord coord = new Coord(latitude,longitude);mapContainer.setCameraPosition(coord);mapContainer.addMarker(EncodedImage.createFromImage(image,false), mapContainer.getCameraPosition(), "Text", "Text", null);but this code helps me to displaying the marker but not along with the text. so if anyone have idea to display marker with text please suggest/help me to achieve this. T...Read more

codenameone - CodeName one Google Maps. Waited too long for browser bridge

Previously Google Maps works fine on my Android device. I did not change any code and certificates. Now I am getting the following error Log:EDT] 0:20:38,90 - Exception: java.lang.RuntimeException - Waited too long for browser bridgejava.lang.RuntimeException: Waited too long for browser bridge at com.codename1.g.d$a.a( at com.codename1.g.d$a.b( at com.codename1.g.d.a( at com.zetta.survey.a.c.a( at com.zetta.survey.d$2.a( more

google maps - Can a build hint variable be accessed from code in Codename One?

My app features a Google Map. I configured the build hints as mentionned here on CN1 blog with the slight difference that the Google Key was defined as a build hint variable as explained here on CN1 blog.Now in code I have to do MapContainer map = new MapContainer(JAVASCRIPT_API_KEY); which JAVASCRIPT_API_KEY is already defined in the build hints. Can I access to this build hint variable from code so that I don't have to include the JAVASCRIPT_API_KEY in code ? Does it bring anything regarding this key being encrypted and not appearing as plain...Read more

google maps - How to correctly use BoundingBox getNE and getSW in Codename One

My app features a MapContainer on which I want to draw a marker for each report in the database. As there could be thousands of reports simultaneously in the database and as many users of my app, I want to always add markers for the reports that can be displayed on the map area actually displayed.That's why I only ask the database for records that lay within South West and North East bounds. On simulator it works great, the reports are plotted where they should on the map.I get the NE and SW bounds with the following commands :MapContainer goo...Read more

google maps - URLImage on MapContainer not displayed on actual device and flickering in simulator

My app features a map, on which the user's avatar is displayed in the center and where markers including photo should be added when the user moves the map.On the simulator, the markers are added but the images disappear as soon as I release the pointer then only the placeholders remain (this is what I call flickering). On the device, nothing is shown apart from the user's avatar.As you can see the image does not remain on the map, only the placeholder does. The user icon is southern on the map but it is shown.Please note: I am not receiving 404...Read more

codenameone - How to style a Google Map under Codename One API?

I use a map in my CN1 application. For inject the map in my form, i use this type : MapContainer mapContainer = new MapContainer();My app must run only on an IPad tab. I can view my Google map correctly. But i need to style this map. With Javascript i can do this :var styles = [ { featureType: "", elementType: "labels", stylers: [ { color: '#f24547' } ] }];map = new google.maps.Map( document.getElementById('map'), { center: navigationData.googlePosition, zoom: 15 });map.setOptions( { styles...Read more

google maps - Add custom wms layer to codename one Mapcontainer

I am building an android GPS app with Codename one. I use com.codename1.googlemaps.MapContainer to create a Google map;In my app is use tabs to create different "pages".Code:cnt = new MapContainer();t.addTab("Tab3", cnt);And for my current location I use:try { Coord position = new Coord(lat,lng); cnt.clearMapLayers(); cnt.setCameraPosition(position); cnt.addMarker(EncodedImage.create("/maps-pin.png"), position, "Hi marker", "Optional long description", new ActionListener() { public void actionPerformed(ActionEvent evt) { // stuff to...Read more

geolocation - Google Maps Stopped working suddenly (Blank Map)

i am starting with google maps. just learning. awhile ago, it was working. now its not. everything seems to workin UI Controls, Markers/Overlay but the map is blank. google.load("jquery", "1.3.2");google.load("maps", "2");google.setOnLoadCallback(function() { var map = new google.maps.Map2(document.getElementById("map")); map.setCenter(new google.maps.LatLng(103.8, 1.37), 13); map.setUIToDefault(); map.addOverlay(new google.maps.Marker(new google.maps.LatLng(103.8, 1.37)));});...Read more

How to customize the sidepanel of Store Locator plugin from google developer

I am trying to use the Store Locator plugin from google developer: wanted to relocate the search locator to the up of the page-like it is on the google map and this is where I ended up:1.I created two panels up and side2. and assigned the same view for both of them.3. Hide the storelist on the up panel using css.4. Hiding the search locator on side panel5. Then while searching on the search locator on the up panel I don get the updated store list and featur...Read more

google maps refreshing grey

I'm trying to add a Google Map to a site javascript and the Google Maps API. The problem is that every time I load the map, most of the map is greyed out. I've done some research and apparently I must add the command:google.maps.event.trigger(map, 'resize');But I've been fiddling with this for the last few hours and I can't seem to make it work. This is the code I'm using: var myLatlng = new google.maps.LatLng(34.310774,66.225586); var mapOptions = { center: myLatlng, mapTypeId: google.maps.MapTypeId.ROA...Read more

google map api without refresh

i need help with google mapI wanna without refresh map change markeri get data from mysql and create markermy file: function initialize(){ var latlng = new google.maps.LatLng(55.472627, 23.15918); var geocoder; var map; var markersArray = []; var infos = []; var myOptions = { zoom: 8, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var encodedString; var stringArray = []; encodedStr...Read more