Hello Chun,
Here's the configuration you want to use:

 baseLayers.push({
        id: 'onemap',
        name: 'OneMap Basemap',
        icon: arches.urls.media + 'onemap.gif',
        layer:  new ol.layer.Tile({
            source: new ol.source.XYZ({
                url: '
http://e1.onemap.sg/arcgis/rest/services/SM256WGS84/MapServer/tile/{z}/{y}/{x}
'
            })
        })
    });

I tested this and it should work.
Cheers,
Alexei


Director of Web Development - Farallon Geographics, Inc. - 971.227.3173

On Tue, Aug 25, 2015 at 11:38 PM, NHB Heritage <[email protected]>
wrote:

> Hello! I am from Singapore and currently trying out Arches on a Win64
> machine.
>
> I would like to ask how to go about adding a basemap from my local map
> system here - http://www.onemap.sg/api/help/
>
> I understand it requires configuring the javascript file "base-layers.js".
>
> Can someone enlightenment me if the configuration/code below is correct?
>
>     baseLayers.push({
>          id: 'onemap',
>          name: 'OneMap Basemap',
>          icon: arches.urls.media + 'onemap.gif',
>          layer: new ol.layer.Tile({
>              visible: false,
>              source: new ol.source.OneMap({
>                  url: '
> http://www.onemap.sg/API/services.svc/getMap?token=qo/s2TnSUmfLz+32CvLC4RMVkzEFYjxqyti1KhByvEacEdMWBpCuSSQ+IFRT84QjGPBCuz/cBom8PfSm3GjEsGc8PkdEEOEr&bmap=sm&size=&level=&center=&lyrIds=
> '
>              })
>          })
>     });
>
>
> Best,
> Chun
>
> --
> -- To post, send email to [email protected]. To unsubscribe,
> send email to [email protected]. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to