﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Crosslight Map Questions</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Map-Questions/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Crosslight Map Questions</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Map-Questions/</link><pubDate>Thu, 07 Jul 2016 06:28:11 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;this is still not answered! &lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Map Questions</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Map-Questions/</link><pubDate>Sat, 11 Jun 2016 10:16:42 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;have CROS-806 and CROS-812 ever been implemented?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Map Questions</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Map-Questions/</link><pubDate>Thu, 30 Jul 2015 03:26:36 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Based on the information I got from the team, they are expected to be available around Crosslight 4 Update 3.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Map Questions</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Map-Questions/</link><pubDate>Wed, 29 Jul 2015 13:42:31 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;what is the current status of CROS-806 and CROS-812.&lt;/p&gt;&lt;p&gt;Both issues are not on the fix list for Crosslight 4. When will these issues be fixed.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Map Questions</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Map-Questions/</link><pubDate>Mon, 04 May 2015 07:40:26 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;A feature request, to get turn-by-turn driving description of a route, has been forwarded to Crosslight development team. The request is filed under CROS-806.&lt;br&gt;I will keep you informed with any news I heard from the team regarding CROS-806.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Another feature request, to show marker's info window programmatically, has been forwarded to Crosslight development team. The request is filed under CROS-812.&lt;br&gt;I will keep you informed with any news I heard from the team regarding CROS-812.&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;There is no two way binding of the CameraSettings on iOS maybe on Android, too. Moving around the map does not update the CameraSettings (I added two way binding in the binding provider). How can I save and restore the state of the map when leaving the map view and navigate back to the map view (view is initialized new)? A sample for iOS and Android would be nice.&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The map view is used to show map so it only receives one way binding. Currently it is not possible to save and restore the state of the map when leaving and navigate back.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I found an interesting article in &lt;a href="http://stackoverflow.com/questions/16697891/google-maps-android-api-v2-restoring-map-state" target="_blank"&gt;stackoverflow&lt;/a&gt;, which discuss about how to restoring Android map state.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Edited on May 5, 2015 3:00 AM&lt;br&gt;Reason: add snippet code to save and restore map state.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;&lt;strong&gt;Android&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;You can try to get the Southwest and Northeast visible region before leaving the map view. Example: add following snippet code in map fragment.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;protected override void OnViewDisposed()
{
    LatLng SouthwestBound = this.MapView.Map.Projection.VisibleRegion.LatLngBounds.Southwest;
    LatLng NortheashBound = this.MapView.Map.Projection.VisibleRegion.LatLngBounds.Northeast;

    // place code to save SouthwestBound and NortheastBound in here

    base.OnViewDisposed();
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Next, set the CameraSettings and apply the latitude and longitude of SouthwestBound and NortheastBound when navigate back at the constructor of the view model.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Example:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;public CustomMarkerViewModel()
{
    this.Title = "Custom Marker";
    this.Markers = this.Repository.GetAll();

    this.CameraSettings = new CameraSettings(
        new MapRectBounds(
            new LocationCoordinate(SouthwestBound.Latitude, SouthwestBound.Longitude),
            new LocationCoordinate(NortheastBound.Latitude, NortheastBound.Longitude)));
}&lt;/pre&gt;&lt;br&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;&lt;strong&gt;iOS&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The Span and Center of map region can be obtained before leave the map view.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;protected override void OnViewDisposed()
{
    MKCoordinateSpan SpanPosition = this.Map.Region.Span;
    CLLocationCoordinate2D CenterPosition = this.Map.Region.Center;

    // place code to save SpanPosition and CenterPosition in here
            
    base.OnViewDisposed();
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Next, set CameraSettings in view model when navigate back to map view.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;public CustomMarkerViewModel()
{
    this.Title = "Custom Marker";
    this.Markers = this.Repository.GetAll();

    this.CameraSettings =
        new CameraSettings(new MapRectBounds(new LocationCoordinate(latitude, longitude), radius));
}&lt;/pre&gt;
&lt;br&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Map Questions</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Map-Questions/</link><pubDate>Fri, 01 May 2015 07:13:06 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;Thanks for answering. I hope you decide to implement the requested features.&lt;/p&gt;&lt;p&gt;Playing around with the map I found another issue. There is no two way binding of the CameraSettings on iOS maybe on Android, too. Moving around the map does not update the CameraSettings (I added two way binding in the binding provider). How can I save and restore the state of the map when leaving the&amp;nbsp;map view and navigate back to the map view (view is initialized new)? A sample for iOS and Android would be nice.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Map Questions</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Map-Questions/</link><pubDate>Thu, 30 Apr 2015 07:03:48 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;blockquote&gt;iOS and Android: I have a single marker placed on the map. Initially this marker is the center point of the map. The marker has a belonging info window. How can I initially show/open this info window? Right now the info window opens when clicking on the marker.&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Currently there is no way to initially show/open info window. I will have this forwarded to Crosslight development team. The team will check the feasibility to implement this on the upcoming version of Crosslight.&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;iOS and Android: Is there a chance to get a turn by turn driving description of a route (text)?&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Such feature is not available yet in the current version of Crosslight. I will have this forwarded to Crosslight development team. The team will check the feasibility to implement this on the upcoming version of Crosslight.&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;iOS and Android: In the view (ViewController or Activity/Fragment) there is an override (InfoWindowLayoutId). Settings the to "0" shows another info window as by default. How many layout ids are there for the info window? Where can I find a desciption about that an how these info windows look like?&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Override InfoWindowLayoutId only applied to Android platform. InfoWindowLayoutId allows developer to use custom layout for the info window of a marker.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;In order to use the default InfoWindowLayout - the native layout of info window -, we need to override InfoWindowLayoutId and return 0.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;protected override int InfoWindowLayoutId
{
    get { return 0; }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The info window of Simple Marker in Crosslight MapSamples shows this behavior.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;When not overriden, the info window will use Crosslight's info window layout. Custom Marker in Crosslight MapSamples uses Crosslight's info window layout, such as shown in the following screenshot.&lt;/span&gt;&lt;/p&gt;
&lt;img src="http://www.intersoftpt.com/Community/Attachments/14414/CrosslightMarkersInfoWindow.png"&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;You can also use your own custom layout for the info window. Just create the custom layout; override InfoWindowLayoutId; and return the custom layout.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Example:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;protected override int InfoWindowLayoutId
{
    get { return Resource.Layout.mapinfowindowlayout; }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Note: I enclose the mapinfowindowlayout.axml for your reference.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Map Questions</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Map-Questions/</link><pubDate>Mon, 27 Apr 2015 17:26:29 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Crosslight Support,&lt;/p&gt;&lt;p&gt;I have three questions about the "Map".&lt;/p&gt;&lt;p&gt;1. iOS and Android: I have a single marker placed on the map. Initially this marker is the center point of the map. The marker has a belonging info window. How can I initially show/open this info window? Right now the info window opens when clicking on the marker.&lt;/p&gt;&lt;p&gt;2. iOS and Android: Is there a chance to get a turn by turn driving description of a route (text)? &lt;/p&gt;&lt;p&gt;3. iOS and Android: In the view (ViewController or Activity/Fragment) there is an override (InfoWindowLayoutId). Settings the to "0" shows another info window as by default. How many layout ids are there for the info window? Where can I find a desciption about that an how these info windows look like?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>