Map markers display in mobile app

NOVASOLUTIONS.TECHNOLOGY is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Map markers display in mobile app
Simple
from 4 hours to 2 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Implementation of Map Marker Display in a Mobile Application

Adding a single marker is three lines of code. Displaying 500 markers with custom icons, correct reuse, and taps without freezing — that's a task with nuances.

Custom Icons: Bitmap vs Vector

Google Maps Android SDK accepts BitmapDescriptor, MapKit — ImageProvider, Mapbox — Drawable / UIImage. Rendering a bitmap from Canvas must be done once and cached — not in onMapReady for each marker separately.

// Google Maps Android — cached BitmapDescriptor
private val markerCache = HashMap<String, BitmapDescriptor>()

fun getMarkerIcon(type: String): BitmapDescriptor {
    return markerCache.getOrPut(type) {
        val bitmap = Bitmap.createBitmap(48, 48, Bitmap.Config.ARGB_8888)
        val canvas = Canvas(bitmap)
        val paint = Paint(Paint.ANTI_ALIAS_FLAG).apply {
            color = when (type) {
                "cafe" -> Color.parseColor("#E74C3C")
                "shop" -> Color.parseColor("#3498DB")
                else -> Color.GRAY
            }
        }
        canvas.drawCircle(24f, 24f, 20f, paint)
        BitmapDescriptorFactory.fromBitmap(bitmap)
    }
}

Creating Bitmap each time you add a marker is a direct path to OutOfMemoryError with 200+ objects on screen.

Callout / InfoWindow on Tap

In Google Maps on Android, InfoWindow renders as a static screenshot — buttons don't work inside and dynamic content doesn't update. For an interactive popup, use ViewAnnotation (Maps SDK v3+) or your own FrameLayout on top of the map with positioning via Projection.toScreenLocation.

// iOS MapKit — custom callout via UIView
func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
    let view = MKAnnotationView(annotation: annotation, reuseIdentifier: "custom")
    view.image = UIImage(named: "pin")
    view.canShowCallout = false // disable standard

    // Add custom callout in didSelect
    return view
}

func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) {
    let callout = CustomCalloutView(annotation: view.annotation)
    callout.center = CGPoint(x: view.bounds.midX, y: -callout.bounds.height / 2)
    view.addSubview(callout)
}

Performance: 500+ Markers

With a large number of objects, native marker APIs start to slow down — each marker is a separate view. The threshold depends on the device: on budget Android, noticeable freezes appear after 150-200 Marker objects when adding simultaneously.

Solution — GeoJSON layer in Mapbox or TileOverlay in Google Maps: points render as part of the map style, without creating objects for each coordinate.

For scenarios where you still need native markers with taps — add them in chunks via Handler.postDelayed or coroutines:

lifecycleScope.launch {
    locations.chunked(50).forEach { chunk ->
        chunk.forEach { loc ->
            googleMap.addMarker(
                MarkerOptions()
                    .position(LatLng(loc.lat, loc.lng))
                    .icon(getMarkerIcon(loc.type))
            )
        }
        delay(16) // one frame, let UI breathe
    }
}

Timeline

4 hours — 2 days. One marker type with callout — half a day. Several types with icon cache and interactive popups — 1–2 days. Cost is calculated individually.