Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 19.1

FEATURE

Maps Part 8

Implementing Maps in Xojo desktop apps with the MapKitMBS plugin

Issue: 19.1 (January/February 2021)
Author: Markus Winter
Author Bio: Markus is a Molecular Biologist who taught himself REALbasic programming in 2003 to let the computer deal with some exceedingly tedious lab tasks. Some call it lazy, he thinks it smart. He still thinks of himself as an advanced beginner at best.
Article Description: No description available.
Article Length (in bytes): 28,791
Starting Page Number: 77
Article Number: 19106
Resource File(s):

Download Icon project19106.zip Updated: 2021-01-04 09:44:13

Related Link(s): None

Excerpt of article text...

Last time we heard that MarkerAnnotationViews had replaced PinAnnotationViews as the default view in iOS 11 (so you should be familiar with them if you have an iPhone or iPad), and will do the same on the Mac desktop with macOS 11 Big Sur.

However, we do not need to wait until we upgrade our Mac's system software to take advantage of some of the improvements that MarkerAnnotationViews bring (like automatically showing the number of items in a cluster). As we use a custom image for the Car and Xojo User annotation views, we can simply mimic a MarkerAnnotationView by drawing whatever we want in the AnnotationView's image property—including showing the number of annotations in a cluster annotation.

Instead of simply assigning the icon image to the annotation view in the GetViewForCustomAnnotation method, we first modify the image before assigning it:

// customize appearance

view.image = image

...End of Excerpt. Please purchase the magazine to read the full article.