Refresh google map of my application - iphone

I have added a googleMap to my application successfully. Now i need to add a refresh button to the map so that it gets refreshed. I have added the button, but i don't know how to refresh the map.
Is there any predefined method that i could use to refresh the map. Help ??

there is nothing predefined for REFRESH - what you are looking for in the MapKit. you need to remove old annotations and have to add the new ones manually(from your own code) for zooming you need to create a span on your own to set it to any value you like (that's also to be done by your own code).

Related

How to Refresh the Google Map in my application using Swift?

I have made a tab bar application, in which one tab(MapTab) consist of an GoogleMap and in another one(ImageTab) all the images are saved. now, when the image get saved in ImageTab it get displayed on a MapTab in the form of Marker.
Now my question is, when i delete the image from ImageTab it gets deleted but how to remove it from MapTab i.e. GoogleMap.
First clear the all the mapView's previous markers with:
mapView.clear()
And then refresh your image array. Now again draw the markers for the refreshed array of images.

Ionic scrolling not work properly while adding dynamic item

am newbie to ionic. I try to add dynamic data to the top of my list, in this scenario ionic scroll doesn't work properly, other thing is newly added item ll not visible by default, to view new item , we need to scroll to up.I think we need to re-initiate ionic scrolling after new item added but i cant find out how to do. Any one have this trouble or found any solution for this problem. share with me in this post.
Is there any config settings available to re-initiate scroll after event occurs?
I don't fully understand your question, but if want to reinitialise scroll after dynamic data addition , you can use a work around like I do.
In your event, after data is added to your DOM. Call this.
$ionicScrollDelegate.scrollTo(0,$ionicScrollDelegate.getScrollPosition().top,true);

Leafet.js: add button with link to zoombox function

I need to add a control button with a "rectangle" zoom or what's called the boxZoom function in leaflet. I know that the function can be used when pressing shift and drawing a rectangle but I need a button that gets clicked and then the user can draw a rectangle which is used a bounds for the boxZoom function. I thought this wouldn't be difficult but I just can't figure it out.
Bonus points if you could tell me how to link other functions, e.g. of leaflet.draw, to my own buttons. I need to create my own button toolbar, so I need to be able to attach different functions to the buttons and would like to use already existing functions.
There isn't a one size fits all solution for this (thus the reason for L.Control.BoxZoom being its own plugin). You'll need to add buttons with click handlers, then read the API of Leaflet or the plugin you're integrating with (e.g. drawing) to find how to toggle the behavior.
The Leaflet.EasyButton plugin does a good job of encapsulating the creation of single button controls and click handlers in an easy way, and may be a good starting point if you're struggling with getting started.

VIA the GWT places API how do you change the URL/PLACE/Place-Token without reloading the page?

We have a giant table of orders in a GWT page. As users click on an order the bottom half of the page loads the details for that order.
When OnSelect of an entry in the table I could fire a place change event and change the place token from #OrdersPlace: to #OrdersPlace:123 where 123 is the order number. The problem is that would require the entire table to reload as well.
Is there a way to just change the URL from #OrdersPlace: to #OrdersPlace:123 so on a browser refresh I can get back to where I was by reading the Place Token without starting from scratch by reloading the entire activity?
If you are using Gin you can make the view a singleton and just have it hold onto the existing data. Think of it similar to removing the table from the DOM and then just re-adding it.
There are equivalent ways of doing the same thing without using Gin too.

Get Address when click on map view

I am making an application for iphone. In that i want to add event like as when user click on map then that address save in text field of view. I have am showing map in view and user zoom in map and click on any location.When click on map then i want use that location. I want to save that location in string or text field. Can u tell me any api which provide this facility?
So can you tell me how can i do that?
Read this Location awareness and come back if you still need help.