I am utilizing MapBox GL JS to display Pins. I am able to display pins on a Mapbox map, no issues with that. I am looking to add some custom javascript code based upon the users "searched" location using the MapBox Search input box they provide.
I have researched all of Mapbox documentation and have not found anywhere where I would be able to implement some custom javascript code based on when a user searches.
Has anyone else come across this before?
Thank you for your time.
Related
I am creating a Mapbox GL page using ngx-mapbox-gl. I am using GeoJson Feature layers to create clusters and individual points. My code is based from this example
https://wykks.github.io/ngx-mapbox-gl/demo/cluster
This is using Features and not Markers to display points.
I would now like to further extend that example to allow popups for individual points. I don't know exactly how to do that. The examples show adding a popup directly attached to a Marker.
Interestingly enough, the exact functionality I am looking for is located by viewing a geo json file directly from GitHub.
https://github.com/Wykks/ngx-mapbox-gl/blob/master/projects/showcase/src/app/demo/examples/earthquakes.geo.json
Popups are displayed for individual points. I'm assuming those points are in the form of a Feature layer? Does anybody know where I can get the source for that viewer or help me with adding popups to Feature layer in ngx-mapbox-gl?
Thanks, Mike
I am having trouble finding a way to add a marker to google maps in my Ionic 2 application. I basically want to add a marker to google maps which is set to the center of the map by default when a user opens the application like Uber. Also if a user chooses to drag the map and look around, it sets the coordinates to the users current position just like Uber. I have tried researching on this but I didn't find any tutorial or documentation on how to to do it. I am using ionic 2 for my application with Angular2. Any help would be appreciated. Thanks a lot!
I've been lately trying to figure out a way to have text and image on google maps for web.
For example, I have 2 friends, I want them to be displayed on the map; their image with their name.
So far all that I found was using JavaScript libraries that can only insert labels on the map.
Is it possible to do what I'm thinking or not? What's the name of the library if it exists?
I would say yes, it is possible as long as you can get the long/lat coordinates of your friends.
Once you have that you can add labels onto google maps api.
I want to create a Web application in which I need a map data of certain area and would like to show the details or location of my customers.
I have seen the Google maps api, but I was searching if I could get something privately for my web application.
Please reply. Thanks.in advance
You can add marker to your map. Markers are designed to be interactive with 'click' events. You can add an event listener to bring up an info window displaying custom information. These marker will only show what you specify. They will not show other marker ( shops,petrol bunks,aims etc)
You can always use the Places API from Google in order to show various places on the Google Maps and also the detailed description about that Places.
Here is the detailed description for the Places API.
Here is a tutorial that may help you in your implementation.
I normally don't work 'outside of the box' when working with the Google Maps API so I'm a bit of a novice and that's why I'm asking here. But for the project I'm working on now we're trying create a Store Locator that changes the google maps coordinates when an user clicks on a store name, which is a link just under our map div.
I was hoping if you people could help me out here because I couldn't find any answers by using Google.
Thanks!