---
title: "Add markers to a Ext.Map in Sencha Touch"  
description: "Add markers to a Ext.Map in Sencha Touch"  
author: "Anonymous User"  
published: 2013-05-31  
updated: 2013-06-01  
canonical: https://www.mindstick.com/forum/956/add-markers-to-a-ext-map-in-sencha-touch  
category: "sencha touch"  
tags: ["sencha touch"]  
reading_time: 1 minute  

---

# Add markers to a Ext.Map in Sencha Touch

Hi Everyone!\
I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to make an [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) which displays a map with your [current location](https://www.mindstick.com/forum/34690/how-to-automatically-fill-our-current-location-in-the-places-textarea-for-my-mvc-application) marker and several markers related to [data from the server](https://www.mindstick.com/forum/156656/fetch-the-json-data-from-the-server-through-jquery) which location is closed to your current location. So far I can render the map, show the current location and get the data related to this location. The [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) arise when I try to add markers about the location of this data. I´ve read through a lot of [forums](https://www.mindstick.com/news/2554/internet-forums-and-governments-are-slow-to-regulate-big-tech-companies-it-mos-says) and pages but I found no solution. I use this piece of code to add markers (to try to add them ..):\
var marker = new google.maps.Marker({ map: map._map, position: new google.maps.LatLng(bookletMarker[i].location[1],bookletMarker[i].location[0]), title : bookletMarker[i].title, [draggable](https://www.mindstick.com/blog/31/creating-draggable-content-with-html-5-is-very-simple):false, icon: "point.png" });\
Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)! \

## Replies

### Reply by AVADHESH PATEL

Hi Alex!\
You should be able to get the map instance from your map with getMap() and then add the pointer as described in the google maps api docs:\
marker.setMap(map);\
OR\
You can use map.getMap() to get the google map instance and use it when you create markers.\
It may be helpful for you.\


---

Original Source: https://www.mindstick.com/forum/956/add-markers-to-a-ext-map-in-sencha-touch

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
