Posts

Showing posts with the label google-maps

Android Spinner to determine Marker Colour

Image
Clash Royale CLAN TAG #URR8PPP Android Spinner to determine Marker Colour I have a spinner which I have created for a project in Android studio. The spinner takes the following values from an array in my strings.xml file. <string-array name="activity_types"> <item>Games</item> <item>Learn</item> <item>Fitness</item> <item>Make</item> <item>Explore</item> <item>Find</item> </string-array> I would like to create a function which places a marker of a particular colour onto my map in MainActivity i.e. selecting Games, will place an orange marker on the map, when 'Games' is selected and the 'Place' button (below) is pressed. However, I am not sure how to go about this? place_btn = (Button) findViewById(R.id.place_btn); place_btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //what would handle the...

android signed apk not display google map after change SH1 key

Image
Clash Royale CLAN TAG #URR8PPP android signed apk not display google map after change SH1 key I am creating a signed APK with updated version. i.e already having version 6 on play store. up to this all is ok and google map is display property.Now, in update-Version 7 my SH1 key changed as PC changed... I created new API key for google map and it display proper google map in debug APK. but not display in signed APK(yet not uploaded version 7 on play store) for this issue what i can do? i got idea that SH1 key should be upload on App signing certificate but not knowing how and when i can change it. please guide If you have used google play app signing then your SHA-1 certificate gets changed from which you have added in google developer console. So now what you have to do is add App Signing SHA-1 as in above pic to your project in google developer console. – Mohammed Farhan 1 hour ago ...

Html, css responsive issues, google maps, paragraph & photo bottom margin

Image
Clash Royale CLAN TAG #URR8PPP Html, css responsive issues, google maps, paragraph & photo bottom margin I've been working on building my website for awhile now for a new business. I have most of it done at this point but running into two issues I've been unable to fix. The first issue is embedding google maps into my location page. I was having trouble making it responsive and was able to get that to work but when I did it would break my footer. I have a static header and footer on my page and once I was able to get the maps to be responsive it made the footer disappear in all screen sizes. The other issue I'm having is on my home page. I have a few paragraphs written out with some images in there. I have this done on another page on the site and it works great but on the homepage when going to a smaller screen size it scrolls part of the way down and then stops scrolling and cuts some of the last image and even some of the text off at the bottom. I would like a little...

Use method from angular-google-maps agmCircle into typescript file

Image
Clash Royale CLAN TAG #URR8PPP Use method from angular-google-maps agmCircle into typescript file I want to get the bounds of a circle when it is changed. From here https://angular-maps.com/api-docs/agm-core/directives/AgmCircle.html I can see it has a "getBounds" method, how can I access it from my typescript file to log this data? Currently my html circle component looks like this: <agm-circle [latitude]="lat + 0.3" [longitude]="lng" [radius]="10000" [fillColor]="'blue'" [circleDraggable]="true" [editable]="true" (dragEnd)="test($event)" > </agm-circle> And I expect to have a function like this: test(m){ // get bounds from circle in some way } 1 Answer 1 Just add it as a ViewChild in your component ViewChild @ViewChild(AgmCircle) child; test(m) { console...

agm-info-window infoWindow Opened by default angular ionic3

Image
Clash Royale CLAN TAG #URR8PPP agm-info-window infoWindow Opened by default angular ionic3 In Ionic 3 + Angular 4 I have the following code : <agm-info-window #infoWindow> <strong>{{data.title}}</strong><br> </agm-info-window> The marker opens the bubble only when clicked How to make it open by default ? Thank you 1 Answer 1 Did you ever found how to open it by default ? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not showing google api version v2

Image
Not showing google api version v2 After running my project, it shows blank maps, I followed many methods but still shows blank now i am confused with the map api v2,my console does not shows all api version this is my console image it does not shows all api version This is my java file public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private GoogleMap mMap; LocationManager locationManager; LocationListener locationListener; @Override public void onRequestPermissionsResult(int requestCode, @NonNull String permissions, @NonNull int grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); if(requestCode==1) { if(grantResults.length>0 && grantResults[0]==PackageManager.PERMISSION_GRANTED) { if(ContextCompat.checkSelfPermission(MapsActivity.this, Manifest.permission.ACCESS_FINE_LOCATION)== PackageManager.PERMISSION_GRANTED) { locationManager.reque...