How can I access a pushpin already added on the map later with the help of some ID? (Bing maps V8) - bing-maps

I have a map where I have added many pushpins & have attached an id with each one of them.
Now, there's a listing of these locations on the right hand in list, I want to highlight a particular pin on click of it's corresponding listing. How do I access these pushpins with the help of id?
I simply want to do something like this: (This is just a random pseudocode, not an actual function)
var e=Microsoft.maps.getPushpin(someID);

Take a look at this code sample. It should how to create a list based on pushpin data and link it back to the pushpins themselves using an id: http://bingmapsv8samples.azurewebsites.net/#QueryAPI_Paging
Source Code: https://github.com/Microsoft/BingMapsV8CodeSamples/blob/master/Samples/Spatial%20Data%20Services/QueryAPI_Paging.html

Related

creating custom leaflet marker on map with idxbroker code

I created a real estate website that uses a company called idxbroker to handle the data from the mls (multiple listing service). I want to have a custom marker to populate on the map for property listings that I have personally so that they stand out when someone searches for properties. Idxbroker does this, however, the marker they provide for my personal listings has a tiny star inside of the same marker used for all listings and you wouldn't realize it unless you were looking for it. I know how to create a custom marker based on leaflet doc's, but not sure how to implement this since idxbroker hosts all this data from their server on my custom subdomain. Is there a way to inject javascript into their code so that my listings have a custom marker?general marker & marker for my listings
Are you looking to add a custom marker on a results page or on the details pages?
It might be easier to just hide the IDX map and write your own in it's place with your custom marker.
Can you provide a map code sample or a link to the page you are trying to customize?

Add marker in Mapbox URL (not via JS)

I'd like to generate a link to a Mapbox map, centered on a particular latitude and longitude, that also contains a marker on that spot. This is trivial when generating a static map:
https://api.mapbox.com/v4/mapbox.streets/pin-m(<lat>,<lon>)/<lat>,<lon>,<zoom>/320x160.png?access_token=<access token>
with the pin-m() segment specifying the marker. When generating a link to a full, interactive (zoomable/pannable) map, however, specifying a marker doesn't seem to be an option. This URL goes to the map I want:
https://api.mapbox.com/v4/mapbox.streets/zoompan.html?access_token=<access token>#<zoom>/<lat>/<lon>
but there's no marker. I looked through all the documentation and couldn't find any reference to a way to do this. From the docs it looks like the only way to add a marker to the map is to host a page and generate the map via JS in a script. I can do this, but I'd much prefer to be able to just add a parameter to a URL instead of adding a whole new route/controller/view/associated specs for our Rails app for what seems to me to be a very minor addition.
Does anybody know of an undocumented way to do this? Or a documented way that I've just overlooked?
You aren't able to add a marker through a url parameter like the static API allows. You could add a marker by following this example for Mapbox JS or you could use the newer Mapbox GL JS to center the map around a marker like in this example.
I Hope this helps

How to get mapid for a map created in an editor using mapbox.js?

I have created a map using mapbox.js for various layer. I have the html file for it. I want to get the mapid for this map so that I can embed it in my website. How should I get the mapid?
A little more info: first you want to make a map with Mapbox:
https://www.mapbox.com/foundations/make-your-first-map/
Then you want to share the map's map ID:
https://www.mapbox.com/foundations/share-your-map/
https://www.mapbox.com/studio/tilesets/
Click on the drop down for the tilesets as shown in screenshot.
This will get you the id for that chosen tileset view.
you need to sign in in to this site https://www.mapbox.com/ and you can get the MAP ID

How can i make custom map for showing user current location in iphone?

i want to show my current location on custom map.The custom map is of my locality....so,please help me how can i use custom map in place of google map???
The main problem with offline maps is not the "map" but all the stuff you need to build to georeference your map.
Think only at a map zoom.
There are many good open source libraries/SDK to manage offline maps.
--EDIT--
It seems that the free code I found was removed.
As soon as I will find a new available one I will update this comment

Create a pin (with heading and description for Google Maps) which is available for routes

I want to start the Maps application from my app. A pin with a correct heading and description (Address) should be shown on the Google map. Ideally the user should pick up this location and use it for a navigation.
I tried this:
1) http://maps.google.com/maps?ll=-33.874559,151.219575
Problem: No pin is shown on the map. The user can add a pin (it is automatically positioned on my before given location) and he can make a navigation etc. If the user has added the pin, he sees the correct address.
2) http://maps.google.com/maps?q=This+is+near+Lake+Shore+Drive#41.9288,-87.6315
Problem: Pin is shown on the map with a given heading. If the user taps the pin, he can't see the address (only latitude, longitude). If the user adds a pin (like in the example before) the position is somewhere in around my given location, but not there where I want. The user has to adjust the position by himself and than he can make a navigation to this point.
3) http://maps.google.com/maps?q=1+Infinite+Loop+Cupertino,CA+95014,USA+(somewhere)
Now I have a heading and a description field. The problem here is that the description is taking account and then there are ten pins shown (which contains a keyword from my description) instead of one.
Other possibilities:
4) Use of a kml-file
I don't want to store many kml-files somewhere on a server. Ideally some URL parameters for creating a kml-file would be fine. But I think there is no way for doing that.
5) Use of MapKit
If I would use MapKit I could create my own pin headings and descriptions. But there is nothing for the navigation I think.
Are there any other suggestions?
I made a combination of MapKit and Google Maps.