Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

relative url asset image

I like to use a custom icon for my google maps marker. This icon is in the assets of my project, but I can't figure out the relative url to the image (the absolute url was easy to find, but I couldn't get the relative url from this).
Absolute: http://appery.io/app/view/5d129ebd-5f...
I tried: files/views/assets/image/blue-dot.png (but this didn't work)

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

relative url asset image

Hi Sjef,

You can use code../image/blue-dot.png/code
Here is an example: https://getsatisfaction.com/apperyio/...

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

relative url asset image

I get a 404 error when I use that.
I set the image using a javascript in the mapping from the geolocation service.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

relative url asset image

Sjef,

Please share your application with a href="mailto:support@apperi.io" rel="nofollow"support@apperi.io/a and tell where to see this.

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

relative url asset image

I shared it.
The map is on the page "kaart". From the start screen it can be found from "information"="map"

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

relative url asset image

Hello! Could you clarify your app name?

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

relative url asset image

AID=Annual Introduction Days (of Wageningen University, the Netherlands)

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

relative url asset image

Hi Sjef,

Please try codefiles/views/assets/image/blue-dot.png/code, it works for us:
Image
pre
var map = Appery("map").gmap;

Code: Select all

         var latlng = new google.maps.LatLng(value.latitude, value.longitude); 

         var marker = new google.maps.Marker({ 
             position: latlng, 
             map: map, 
             title: "You", 
             icon: "files/views/assets/image/blue-dot.png" 
         });/pre
Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

relative url asset image

thank you, that works for me.

Return to “Issues”