Skip to content

zulkis/ZSMapClusterer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZSMapClusterer

Windows Phone 8 Map Clusterer

How to use: On Map Loaded:

Loaded += (s, e) =>
{
	if (_mapWorker == null)
  	{
    	_mapWorker = new MapWorker(Map, SingleTemplate, GroupTemplate, UserLocationTemplate);
    }
};

//...

~MapPanoramaPage()
{
	_mapWorker = null;
}

When you need to set some annotations just prepare them like this:

List<IAnnotation> annotations = 
	App.ViewModel.FilteredChargerStations.Select(cs =>
	{
    	var object = new ModelContainsPushpinAndYourClass // simple object contains ref to Pushpin And to your Model object
        {
        	Pushpin = new Pushpin
            {
            	GeoCoordinate = cs.Coordinate
            },
             	Model = object
       	};
        return (IAnnotation)object;
    }).ToList();

Then call:

_mapWorker.UpdateWithAnnotations(annotations);

//I will make some improvements with pushpins later.

About

Windows Phone 8 Map Clusterer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages