
Search In
First create a layout for Map Activity. The name of layout is activity_main.xml
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
class="com.google.android.
Sometimes we need to display Google Map on a JSP page, for this you just need pass lat/long to JSP. Use below code to initialize map in script:
var marker = null;
var map = null;
var markers = [];
function initializeMap()
here is my java script code
function onSuccess(position) {
var element = document.getElementById('map');
var lat=position.coords.latitude;
var lang=position.coords.longitude;
var myLatlng = new googl
Diable Google Maps scrolling:
I was facing issue with Google Maps API version 3. On page scroll, google maps scroll should be disabled i.e. I have to disable zooming when you scroll on the map. So this is how I have fixed this issue. Write this code
Hello Readers ,
Below are the simple steps to follow to show the google map.
Add the Goggle API
<!DOCTYPE html>
<html>
<script src="https://maps.googleapis.com/maps/api/js"></script>
<body>
<h1>My First Google
Hello Reader's if you are integrating the Google Map in the website and you also want to show custom line on the map, Then this blog is very helpful you.
Lets see the working of this custom map.
<!DOCTYPE html>
<html>
<head>
<sc
Remove markers from Google MAPS API v3:
I was facing issues while removing all the markers from the Google map API. I know how to remove markers in Google Maps API v2 by :
map.clearOverlays();
Now the question is how to remove markers from Google
Map and List are the two commonly used data structures
Here I am writing way to convert Map to List.
Basically Map holds two things are key and value on the other hand list holds only values.
Both Map and List allow duplicate data.
Below is the ex
Hello Reader's if you are integrating the google map with marker showing your address, Then you can also make the marker with bounce effect.
Lets see my code as below:-
<!DOCTYPE html>
<html>
<head>
<script
src="http://maps.goog
This code will point the Latitude and Longitude On Google Map with a marker.
For this include a script:
Here is the code hope it may help you somewhere
<html>
<head>
<script type="text/javascript" src="http:/