<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;type=atom" />
	<updated>2026-07-30T16:05:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/index.php</id>
		<entry>
			<title type="html"><![CDATA[RawImageTouchForwarder incorrect with non-centered pivot]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2429&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hi,</p><p>I am using the same setup as the Tileset on UI example: the Tileset is rendered to a RenderTexture, which is displayed in a UI RawImage using RawImageTouchForwarder.</p><p>My RawImage is anchored in the top-right corner and has a pivot of (1, 1). With this pivot, pointer input is only detected near the top-right area, and zooming is not centered on the cursor.</p><p>The issue is in RawImageTouchForwarder.cs, inside the ProcessTouch method. This line assumes that the pivot is always centered:</p><div class="codebox"><pre><code>localPosition += sizeDelta / 2.0f;</code></pre></div><p>Replacing it with:</p><div class="codebox"><pre><code>localPosition += sizeDelta * image.rectTransform.pivot;</code></pre></div><p>fixes pointer input and cursor-targeted zoom for any pivot.</p><p>Could you please review and include this fix?</p><p>Thank you.</p>]]></summary>
			<author>
				<name><![CDATA[sviudes]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=4058</uri>
			</author>
			<updated>2026-07-30T16:05:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2429&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OnGetInputPosition from RawImageTouchForwarder returns Vector2.zero]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2428&amp;action=new" />
			<summary type="html"><![CDATA[<p>I&#039;m using Online Maps 3.10.1.1</p><p>This code is from OnlineMapsRawImageTouchForwarder:</p><div class="codebox"><pre><code>    private Vector2 OnGetInputPosition()
    {
        if (target != image.gameObject) return Vector2.zero;
        return ProcessTouch(pointerPos, out Vector2 pos) ? pos : Vector2.zero;
    }</code></pre></div><p>If target is not image.gameObject it return Vector2.zero. Target is taken from this method:</p><div class="codebox"><pre><code>private GameObject GetTargetGameObject(Vector2 position)
{
    PointerEventData pe = new PointerEventData(EventSystem.current)
    {
        position = position
    };

    List&lt;RaycastResult&gt; hits = new List&lt;RaycastResult&gt;();
    EventSystem.current.RaycastAll(pe, hits);

    if (hits.Count == 0) return null;

    return hits[0].gameObject;
}</code></pre></div><p>Meaning if we dont hit anything it returns Vector2.zero, meaning if in unity editor mouse is outside game tab and we use mouse scroll wheel map will zoom. How can I prevent that zoom? I&#039;ve tried to change the OnGetInputPosition method to return Vector2.positiveInfinity, but them I&#039;m getting exceptions &quot;Screen position out of view frustrum&quot; from within Online maps code on android build.</p><p>This is the UpdateZoom method which uses the OnGetInputPosition:<br /></p><div class="codebox"><pre><code>    protected void UpdateZoom()
    {
#if (UNITY_IOS || UNITY_ANDROID) &amp;&amp; !UNITY_EDITOR
        return;
#else
        
        if (!HitTest()) return;

        Vector2 inputPosition = GetInputPosition();

        if (IsCursorOnUIElement(inputPosition)) return;

        if (checkScreenSizeForWheelZoom &amp;&amp; (inputPosition.x &lt;= 0 || inputPosition.x &gt;= Screen.width || inputPosition.y &lt;= 0 || inputPosition.y &gt;= Screen.height)) return;

        float wheel = OnlineMapsInput.GetAxis(&quot;Mouse ScrollWheel&quot;);
        if (Math.Abs(wheel) &lt; float.Epsilon) return;

#if NETFX_CORE
        wheel = -wheel;
#endif

        float delta = wheel &gt; 0 ? zoomSpeed : -zoomSpeed;
        if (OnValidateZoom == null || OnValidateZoom(OnlineMapsZoomEvent.wheel, map.floatZoom + delta))
        {
            if (zoomMode == OnlineMapsZoomMode.target) ZoomOnPoint(delta, inputPosition);
            else map.floatZoom += delta;
        }
#endif
    }</code></pre></div><p>How can I handle this? Thanks for help.</p>]]></summary>
			<author>
				<name><![CDATA[mikli1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2745</uri>
			</author>
			<updated>2026-07-23T11:27:05Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2428&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Faster way to download RWT_Cache?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2427&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hi there, is there a faster way to download the required cache for RWT? As even with a fast internet speed, it still takes awhile for the download handler to finish, especially if we want a high quality tiles with a huge and wide area.</p><p>For example 22 quality (maximum) with a 10km radius needs 29gb to download, but getting to just 2gb is taking too long using the handler.</p><p><span class="postimg"><img src="https://forum.infinity-code.com/misc.php?action=pun_attachment&amp;item=1131&amp;download=1" alt="Download Image Example" /></span></p>]]></summary>
			<author>
				<name><![CDATA[Login]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=42771</uri>
			</author>
			<updated>2026-06-17T10:39:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2427&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[No Map After Running Map Wizard on New Project]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2426&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hey. I have been using OnlineMaps for a couple of years. Went and opened a project from 6 months ago and the map was not rendering. Opened up another earlier version of the same project and the same thing. So I created a project from scratch, imported OnlineMaps and ran the map wizard to create a map. The map is not rendering and changing the map provider and type does not impact anything. </p><p>ANy ideas? This all seems odd to me and I have not encountered this in the past at all so I thought I would ask before troubleshooting.</p><p>thanks!</p>]]></summary>
			<author>
				<name><![CDATA[d.arrenmacisaac]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2631</uri>
			</author>
			<updated>2026-06-10T19:07:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2426&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OpenStreetMap dark mode]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2425&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hello, anyone has a way to have open street maps in dark mode? I have my own instance of OSM, but there is no dark mode styling in Online Maps asset. I see Mapnik, Black and White (not working for me), DE, France, HOT. </p><p>Any suggestions why BlackAndWhite is not working?</p><p>Thanks for help.</p>]]></summary>
			<author>
				<name><![CDATA[mikli1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2745</uri>
			</author>
			<updated>2026-05-25T08:17:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2425&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Update markers position problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2424&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hi, I&#039;m using Online maps 4.5.0.1 and Unity 6.3.<br />I have a custom markers engine just like in the examples. I&#039;m calling UpdateMarkers when map moves (assigned to public Action OnMapUpdated). My application is only 2d. I&#039;m using Canvas with screen overlay mode with canvas scaler - scale with screen size (mode expand). Also my map is in many places in my application and my map views have different sizes, sometimes full screen sometimes they are smaller in popups. In my setup I have a MapCamera that renders the map into a Map render texture. I have multiple RawImages in my project with RawImageTouchForwarders.</p><p>The problem I have is that when I move the map markers position is not updated with the same vector. They got desync and point to another location. Seems like something with the canvas scaler is incorrectly calculated... but I cannot find the error in the code.</p><br /><p>This is my UpdateMarker method:<br /></p><div class="codebox"><pre><code>private void UpdateMarker(IUIEntity marker, MapController mc)
{
    if (marker == null || !marker.hasGameObject || marker.gameObject == null)
    {
        return;
    }

    Transform markerTransform = marker.gameObject.transform;
    RawImageTouchForwarder forwarder = markerTransform.parent.parent.GetComponentInChildren&lt;RawImageTouchForwarder&gt;(true);

    if (forwarder == null)
    {
        Logger.Error(&quot;Could not find raw image touch forwarder for marker: &quot; + marker.gameObject.name);
        return;
    }

    Vector2 screenPosition = mc.control.LocationToScreen(marker.longitude, marker.latitude);
    screenPosition = forwarder.MapToForwarderSpace(screenPosition);

    RectTransformUtility.ScreenPointToLocalPointInRectangle(markerTransform.parent as RectTransform, screenPosition, null, out Vector2 point);
    markerTransform.localPosition = point;
}</code></pre></div><p>Thanks for help.</p>]]></summary>
			<author>
				<name><![CDATA[mikli1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2745</uri>
			</author>
			<updated>2026-04-20T14:44:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2424&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[UserLocation with google geocoding]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2423&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hi Alex,</p><p>So I&#039;m just wondering what&#039;s the best way to do this.&nbsp; I want the tileset map to display with the user location and maker at that location.&nbsp; This works fine, however when I &quot;find location&quot; using GoogleGeocodingRequest the result doesn&#039;t update the map unless I disable the user location component.&nbsp; I would like to init the map at users location, which is why I use this component.&nbsp; Just wondering if I&quot;m doing something wrong</p><p>Thanks,</p><p>Valerie</p>]]></summary>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2026-03-21T19:17:54Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2423&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Is Mapbox support broken ?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2422&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hello there, it seam that Mapbox is no more working with the current OnlineMaps version 4.5.</p><p> configuring the Map Component to Mapbox and adding the Token, userID and mapID, it only displays a white plane. <br />No matter what I change of mapID style, it is the same even using one of the default styles from the Mapbox web site.</p><p>Could you please help ?</p>]]></summary>
			<author>
				<name><![CDATA[Ricardo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=30809</uri>
			</author>
			<updated>2026-03-19T22:39:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2422&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Marker texture is null]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2421&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hi Alex, I&#039;m trying to run the Navigation example and I get the following error:</p><p>Marker texture is null<br />UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)<br />OnlineMaps.MarkerFlatDrawer:DrawMarker(Marker2D, Map, Single)<br />OnlineMaps.MarkerFlatDrawer:OnDrawMarkers()<br />OnlineMaps.ControlBaseDynamicMesh:UpdateControl()<br />OnlineMaps.TileSetControl:UpdateControl()<br />OnlineMaps.Map:UpdateControl()<br />OnlineMaps.Map:CheckBufferComplete()<br />OnlineMaps.Map:LateUpdate()</p><p>Not sure why I don&#039;t see this error while testing in Unity, but the example doesn&#039;t seem to do anything.&nbsp; So then I tried using the&nbsp; example on iOS, and that&#039;s when I get the error.</p><p>Sorry for the extra work.&nbsp; Just curious if you can point me in the correct direction.&nbsp; BTW, I don&#039;t see any FIX buttons in the inspector.</p><p>Thanks.</p>]]></summary>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2026-02-17T22:07:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2421&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Mapbox Access Token is not specified]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2420&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hello, i try to download an elevation map from a site in Italy from Mapbox, i created an account on Mapbox, got an Access Token, inserted on the proper field in Real World Terrain, but when i push the Start Button an alert appears in Unity saying &quot;Mapbox Access Token is not specified&quot;. I tried a few times with new generated tokens from Mapbox account but no success. When i download the terrain from SRTM Elevation Provider it works fine, no need for Tokens as well, but with Mapbox it seems the Tokens i m using are not valid.<br />Any help ?<br />Thank you in advance<br />Fabio Geremei</p>]]></summary>
			<author>
				<name><![CDATA[fabiogeremei]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=30408</uri>
			</author>
			<updated>2026-02-17T21:04:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2420&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[2D marker with transparency]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2414&amp;action=new" />
			<summary type="html"><![CDATA[<p>I&#039;m trying to make and use a 2d marker with some transparency.&nbsp; The background is completely transparent, along with a blue ball marker in the center.&nbsp; Around the center is a circle with about 30% opacity (70% transparent).&nbsp; Unfortunately unless I use 50% transparency or more, the color doesn&#039;t show at all.&nbsp; 50% transparency isn&#039;t enough for my liking.&nbsp; I&#039;m trying to implement like Apple Maps does with horizontal accuracy.&nbsp; That is, as the accuracy of the locations services gets better/worse, I want to swap different user location markers (at runtime); if this is possible.&nbsp; I figured it was.&nbsp; </p><p>Anyway, an example of the marker is attached.&nbsp; </p><p>Thanks!</p>]]></summary>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2026-01-16T21:36:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2414&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[advice on how to accomplish this]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2412&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hi Alex, I&#039;m hoping you can help explain how I would accomplish this:</p><p>I&#039;m creating an AR app on iOS that is location based, which is why I&#039;m using online maps 4. </p><p>I have a Tileset map<br />I have User Location script on the map<br />I have real tileset size example script on the map</p><p>The camera will be perpendicular to the map located in the center of the map, updated on GPS location change events<br />The map will not be visible, it&#039;s used to keep AR objects placed at geopoints, which should update as the users loc changes.</p><p>I&#039;m trying to keep this simple and leverage online maps functionality and examples.</p><p>What&#039;s the best way to keep the map updating with the users location?&nbsp; From reading examples/forum posts I&#039;m assuming that I would be creating a marker which gets updated with loc change events, and then somehow the map will follow the marker.&nbsp; Does that sound correct?&nbsp; Am I making this more complicated than necessary?</p><p>I need to see the map while this is in development, but it&#039;s super blurry/pixelated, so I&#039;m wondering if that&#039;s normal.&nbsp; (due to zoom level). current zoom is 17, but this can be changed since I&#039;m using real size example script.</p><p>I don&#039;t see the camera moving to the center once real size example runs.</p><p>Anyway, these are just some problems I&#039;m having initially; probably making things too complicated, which causes more problems.</p><p>Thanks!</p>]]></summary>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2026-01-14T01:39:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2412&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Change map’s north orientation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2411&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hi!</p><p>I ran into an issue where the north of the map is pointing toward -Z, and the east is toward -X.<br />When I place an object as a marker on the map, it ends up rotated 180 degrees around the Y axis relative to the map.</p><p>Is there a way to change the map’s orientation so that north points to +Z and east to +X?<br />Control: Tileset</p><p>Thanks in advance!</p>]]></summary>
			<author>
				<name><![CDATA[caudate7855]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=29955</uri>
			</author>
			<updated>2026-01-13T03:42:08Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2411&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to get world position of location on my tileset]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2410&amp;action=new" />
			<summary type="html"><![CDATA[<p>So I have a new unity project and have upgraded to using the new Online Maps 4 asset.&nbsp; Years ago, using online maps 3 I was able to execute this line:</p><div class="codebox"><pre><code>// get the world (vector3) pos corresponding to this lat/lon
Vector3 customMarkerPos = OnlineMapsTileSetControl.instance.GetWorldPosition(someObject.Long, someObject.Lat);</code></pre></div><p>I looked through the atlas of examples and searched here on the forum, but I only came up with:</p><div class="codebox"><pre><code>Vector3 customMarkerPos = OnlineMapsControlBaseDynamicMesh.instance.GetWorldPosition(locationMarker.location);</code></pre></div><p>Unfortunately I get:&nbsp; The name &#039;OnlineMapsControlBaseDynamicMesh&#039; does not exist in the current context</p><p>I think I&#039;m in over my head here Alex.&nbsp; Any suggestions?&nbsp; Thanks!</p>]]></summary>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2026-01-11T23:23:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2410&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Flight route across International Date Line disappears partially]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?id=2409&amp;action=new" />
			<summary type="html"><![CDATA[<p>Hey Alex,</p><p>I&#039;m using Online Maps V4 in Unity to draw flight routes between airports. When drawing a route that crosses the International Date Line (e.g., Tokyo to San Francisco), I&#039;m encountering rendering issues.</p><p>What I&#039;ve tried:<br />I split the route into two separate OnlineMapsDrawingLine objects: one segment on the left side of the map and one on the right side to avoid the line wrapping around the globe incorrectly.</p><p>The problem:<br />When I pan/drag the map, only ONE of the two line segments is visible at a time:<br />Sometimes only the left segment appears, the right one disappears. Sometimes only the right segment appears, the left one disappears. They never show simultaneously.<br />It seems like the map only renders one line at a time during viewport updates.</p><p>Expected behavior:<br />Both line segments should remain visible simultaneously while panning, creating a continuous visual flight path across the Date Line.</p><p>Question:<br />Is there a known limitation with rendering multiple OnlineMapsDrawingLine objects across the ±180° longitude boundary? Or is there a specific method I should use to handle transpacific routes that cross the Date Line?</p><p>Any guidance would be greatly appreciated!</p>]]></summary>
			<author>
				<name><![CDATA[lastcall]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=29887</uri>
			</author>
			<updated>2026-01-08T01:21:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?id=2409&amp;action=new</id>
		</entry>
</feed>
