Topic: Problem with making 3d markers as scripts.

Problem with making 3d markers as scripts. It is created but not activated. Changing to setActive (true) will show on the screen but will not work when dragging the map. How should we solve it?

working movie -> https://youtu.be/kdAvAn7hvpM   (youtube)

Re: Problem with making 3d markers as scripts.

Hello.

You confused the latitude and longitude in coordinates of the marker.
X - longitude, Y - latitude.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Problem with making 3d markers as scripts.

The issue has been resolved. Thank you! smile

Re: Problem with making 3d markers as scripts.

hi,

i seem to be having a similar issue and i have double checked the arguments im parsing and they seem to be in the correct order but my 3D prefab is inactive at runtime and the scale is incorrect. The code is below

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ThreeDMarker : MonoBehaviour {
   
        public GameObject markerPrefab;

        private OnlineMapsMarker3D marker3D;
        double markerLongitude= 151.5496154;
        double markerLatitude = -32.9765848;

        private void Start()
        {
            // Get instance of OnlineMapsControlBase3D (Texture or Tileset)
            OnlineMapsControlBase3D control = OnlineMapsControlBase3D.instance;

            if (control == null)
            {
                Debug.LogError("You must use the 3D control (Texture or Tileset).");
                return;
            }
        // Create 3D marker

        marker3D = control.AddMarker3D(markerLongitude, markerLatitude, markerPrefab);
           

        }
    }

any help or tips would be greatly appreciated!

Regards

Re: Problem with making 3d markers as scripts.

Hello.

I checked your script (without any changes), and it works well.
The marker is shown in Australia near to Newcastle.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.