How to show multiple locations in Blackberry Rich Map Field - blackberry

I getting location lattitude and longitude values from webservice.Now i have to display those locations on Blackberry Rich Map Field.And i also switch to other screen when particular location is clicked.How can i display multiple locations in BB Rich Map Field.
Thank You

Your only solution is to override paint method of mapfiled to show multiple markers.
Check this out:
How to show more than one location in Blackberry MapField?

Related

getting traffic incidents - Bing geo box

I am having issues getting Perth, Western Australia traffic incidents.
Perth GEO location is -31.973894615810956~115.85279846191405
Now according to Bing I need to create a box. But how do I create a box when I only have the above details?
In their example they have
http://dev.virtualearth.net/REST/v1/Traffic/Incidents/37,-105,45,-94?key=YourBingMapsKey
However they don't show what this area is covering, or how they made it.
its a bbox from Colorado to Minnesota (I just put it on the map)
for Perth , you can select Left Bottom and Right Top coordinates and add it to the request
http://dev.virtualearth.net/REST/v1/Traffic/Incidents/-32.24261071903905,115.73831563321075,31.64070863452504,116.03151324837162?key=YourBingMapsKey

Spotfire Map Multiple Values in same geo code

Im drawing a simple map in spotfire using US cities as geo location. The values I want to show on the map is the location of 'specific gas stations' by the geo code.
For larger cities there are many but im only able to get one 'shape'. I can work on the coloring or size. But im interested to get all 5 dots next to each other or a call-out highlighting there are five..?
Is there a way to show all values, or does spotfire need to combine them?
I know I can get more details with lat/long but that is not an option.
are your shapes literally being combined? that shouldn't happen unless you are doing a "Marker by: City". double check this setting.
if they aren't being literally combined into one point on the map, but instead they are sitting on top of each other, you could adjust the jitter settings on your Marker Layer (check the Appearance page in the Properties dialog) to spread them out a little bit.
if that doesn't suit your needs, and the former case is true, please update your question with some screencaps of your map chart's configuration and I'll see if I can provide a better answer :)

Here Map : How to differentiate between two markers at same location

How can we differentiate among multiple NMAMapMarker at same location.
As we have marker.userdata property for google markers but how to manage data for markers in Here Maps.
When you are placing multiple markers at the same geo-point, they are stacked on top of the other. Since they are all at the same coordinate, only the top most one will be displayed. To enable multiple marker to be shown at the same coordinate, you will need to have some logic to slightly shift the position of markers. For example check if there is already a marker at the point, if there is an existing one, then use some logic to slightly change the coordinate value of the new marker to be added at the point.

iOS: (Swift) How to show distance from current location and exist annotation on annotation subtitle

I am currently working on map application base on iOS using Swift language. I would like an suggestion because after I plot all the pins on map view
(which I receive data from my server using JSON frameworks call Alamofire)
I would like the subtitle of all annotations on map to show distance from user current location.
Now it can add annotations onto map view but can only show title and subtitle base on information receive from my server.
Thank You.
If you have two CLLocation instances, you can calculate distance with the following code:
var one, two: CLLocation
// assign one and two
let distance = two.distanceFromLocation(one)
CLLocationDistance is just double and distance calculated in meters

Remove only restaurants from MKMapView

I'd like my MKMapView to show points of interest except restaurants. Is this possible, and if yes, how can I set this up?
I did see the below in the Documentation but is it really all or nothing?
#property (nonatomic) BOOL showsPointsOfInterest;
When this property is set to YES, the map displays icons and labels for restaurants, schools, and other relevant points of interest. The default value of this property is YES.
For example, in the below, I want the gas station to show but not the restaurant.
With IOS 13 you have the option to filter: here a example to show no items on the map
localMap.pointOfInterestFilter = .some(MKPointOfInterestFilter(including: []))
For example you can filter airports out of the map...
localMap.pointOfInterestFilter = .some(MKPointOfInterestFilter(including: [MKPointOfInterestCategory.airport]))
It's not possible to control the specific type of points that are plotted. Apple could add/remove/change the specific types it displays in any future update of Map Kit. As you mentioned, your only course of action is setting showsPointsOfInterest.
You could use a third-party place database from Foursquare or Facebook to get similar points of interest and plot them on your map, however there is no guarantee that the results would match the ones Apple would otherwise show.
Another option in iOS 13 is to include or exclude certain points of interest:
// Includes airports
localMap.pointOfInterestFilter?.includes(MKPointOfInterestCategory.airport)
// Excludes laundry/laundromats
localMap.pointOfInterestFilter?.excludes(MKPointOfInterestCategory.laundry)

Resources