Skip to main content

Default Start Location in Map View

Comments

31 comments

  • Brian Lawson Community moderator

    Unfortunately there is no way to do that at this time. A suggestion has been made on the ON1 Photo RAW Project to add this. You can vote for the suggestion at https://www.on1.com/products/photo-raw/ideas/idea/map-function/#comments

    0
  • Rick Sammartino Community moderator

    It's not a default, but you can set your co-ordinates and save that as a preset. Then you can either add it on the fly or sync it to all of your photos.

    0
  • Andrew Jones

    Thank you.

    I have added my vote to the suggestion and shall try Rick's suggestion.

    My thoughts are that if the developers can set the default to Portland - then it shoud be reasonably simple to introduce it as an option for users to set.

    0
  • Dorian Binder

    Locate 'MapViewMain.html' in your install directory 'C:\ProgramData\ON1\ON1 Photo RAW 2022\WebContent' and make a safety copy.
    Open 'MapViewMain.html' with a texteditor (notepad) and change 'center: [-122.74753, 45.409199]' to the desired coordinates (both entries).

    The coordinates can be found via GoogleEarth.
    GoogleEarth->Tools->options->3DView->DecimalDegrees
    Mark the desired new center and note the coordinates.
    The correct format is latitude, longitude.
    (For example, the coordinates of Sheffield are 53.380467, -1.475307.)

    Safe the changed file and restart ON1.

    0
  • Subias Gilles

    Seems a nice idea, but on Mac, opening MapViewMain.html with TextEdit only show me outdoors, streets, satellite, no more. Maybe Brian as usual has the good solution for Mac users ;-)

    0
  • Brian Lawson Community moderator

    There is a MapViewMainMac.html file for Mac users. You make the same changes in it. 

    0
  • Andrew Jones

    Dorian

    You say "both entries". I can find only one.

    0
  • Brian Lawson Community moderator

    There is only one entry now. I changed mine tonight and it is working correctly with just the one change.

    0
  • Subias Gilles

    When I open in TextEdit, I only get this:

    Where may I find "center" ?

    0
  • Gerry Whitmarsh

    In my Windows 11 box I have in C:\ProgramData\ON1\ON1 Photo RAW 2022\WebContent\MapView two files: MapViewMain.html and MapViewMainMac.html

    I have changed the coordinates in both files to my home address and rebooted but the default still comes up as Portland! Maybe there is some other location for W11, or could it be hard coded😲

    map = new mapboxgl.Map({
              container: 'map',
                  style: 'mapbox://styles/mapbox/dark-v10', // replace this with your style URL
                center: [52.22963, 5.09162], 
                zoom: 10

    0
  • Brian Lawson Community moderator

    Subias, TextEdit is trying to display the HTML instead of letting you edit it. Go to Preferences > Open and Save and turn on the option Display HTML files as HTML code instead of formatted text then you can edit it.

    Gerry, it is hard coded, right where you have made your changes. That center: tag is all that needs to be changed. There used to be 2 locations in the file where that was specified but I'm only finding the one now. You can ignore the Mac file as Windows does not use it.

    I don't know why the program isn't seeing your changes though, sorry. That should be all you need to do to get this to work. Hopefully another Windows user can give it a try and chime in.

    0
  • Gerry Whitmarsh

    Brian, I meant hard coded in the program, not that it would be:-)

    0
  • Subias Gilles

    Brian you're the king !

    Now I changed the "center" saved it, and ON1 displays the map origin in Somalia/Ethiopia !

    Of course my latitude and longitude are right (44.xxxxxx,6.xxxxxx, south eastern France), maybe the longitude needs a 0 before the 6 ? And some of your previous posts add a "."after last 6.xxxxxx > 6.xxxxxx. ?

    Or a space before 6? Or have first 6.xxxxxx and last 44.xxxxxx (I presume no)

    Going crazy... (Trying your TextEdit settings, right, test in ON1, then deleted settings, still in Somalia)

    Edit: I copy-paste 44.xxxxxx,6.xxxxxx in Safari search, 0,0033s after I see the right location/map, so something in MapViewMain needs some more edits ?

    0
  • Andrew Jones

    My coordinates are putting me in the Indian Ocean (in global terms not far from Somali/Ethiopia!)

    I have checked Lat and Long and meticulously compared code with original - acn't see anything wrong.

    But here's the strange thing. If I put the original coordinates (-122.74753, 45.409199) into GMaps ... GMaps cannot find it!

    UPDATE - However ... the coordinates for Salem in Oregon are 44.95168171737269, -123.00932598407128 - ie reversed.

    So I reversed the Lat and Long and ... it works!

    I have no idea why.

    0
  • Subias Gilles

    You are right !

    Longitude must be first; as I see in MapViewMain:

    console.log("setMarker"):

    var markerLatitude = window.mapViewChannel.markerLatitude;
    var markerLongitude = window.mapViewChannel.markerLongitude;
    console.log("markerLongitude " + markerLongitude + " markerLatitude " + markerLatitude);
    clearMarker();
    mainMarker = new mapboxgl.Marker()
    .setLngLat([markerLongitude, markerLatitude])
    .addTo(map)
    Now I have to set the zoom correct because even if the map is center as I wished it displays the whole world map, zooming x times displays the right place; zoom is in MVM set to 10, maybe changing to 20 will be more efficient. I'll try later.
    Thanks for your help everybody.
    0
  • Gerry Whitmarsh

    Andrew,

    Good catch! Reversing Latitude and Longitude worked for me also.

    0
  • Gerry Whitmarsh

    Sorry, false alarm, it just remembered the last used location. Default is still Portland:-( 

    0
  • Subias Gilles

    Did you restarted your computer after doing the changes ? I guess my various changes and tests did'nt worked for this reason, so try restart (of course having write longitude first and latitude second).

    0
  • Brian Lawson Community moderator

    Restarting the computer isn’t necessary. Only Photo RAW needs to be restarted.

    0
  • Gerry Whitmarsh

    Weird. After re-boot I opened a folder and selected a photo (they all have no location info). When I selected map view it came up with the new location I had entered. Selecting other photos in the folder didn’t change the view. This is why I thought it was working, but upon opening another folder the view flipped back to Portland for the rest of the session! No biggie for me as I do not use this functionality much, but still...

    0
  • Subias Gilles

    As you... I give it up.

    Setting zoom to 15 instead of 10, can't see any improve. The worse is 1) open On1, 2) just have browse, not any photo open, no catalog, 3) clic on map icon > Portland !!! , 4) choose an untagged gps photo, clic map: Portland again. Resetting zoom to 10, same issue, I can't imagine where are the perfect settings in MapViewMain & MapViewMainMac, so random.

    0
  • Brian Lawson Community moderator

    You're doing something wrong Subias. This is very simple and it does work. I've been doing it for more than a year. When I view an image with no GPS info the map displays the St George location I've set in the center: HTML tag. Viewing an image with GPS data goes to that location as it should.

    Make sure you are putting the coordinates into the center: tag in longitude, latitude order which is the reverse of how we normally see that info. Also be sure you are using the decimal form for them and not degrees, minutes, seconds. Also be sure you are doing this in the program's data folder, not your user data.

    C:\ProgramData\ON1\ON1 Photo RAW 2022\WebContent\MapView

    Macintosh HD:/Library/Application Support/ON1/ON1 Photo RAW 2022/WebContent/MapView

    Here is what the relevant section looks like in my MapViewMainMac.html file. It starts on line 88.

    map = new mapboxgl.Map({
    container: 'map',
    style: 'mapbox://styles/mapbox/dark-v10', 
    center: [-113.584479,  37.108783], 
    zoom: 10
    });

    0
  • Subias Gilles

    Here my setting (same in MapViewMain.html)

    mapboxgl.accessToken = accessToken;
            map = new mapboxgl.Map({
                container: 'map',
                style: 'mapbox://styles/mapbox/dark-v10', 
                center: [6.136624,44.044987], 
                zoom: 10

    Maybe "access Token" guilty, or having same "center" in MVWMac html and MVM html ?

    Access to those files needs for me Library > application support, ON1 is not direct using "

    Macintosh HD:/Library/ON1/ON1 Photo RAW 2022/WebContent/MapView as you wrote ?

    And I see before your latitude you have some spaces after the longitude coma ?

    0
  • Brian Lawson Community moderator

    You're a Mac user right? You need to be editing the Mac version of the file — MapViewMainMac.html. Macintosh and Windows systems each use their own version of the file. There is other HTML code in them which is OS specific.

    I don't understand what you mean by, "Access to those files needs for me Library > application support, ON1 is not direct using " Does this mean you are unable to save your changes to the one in the Macintosh/Library location? That would also be a problem as the program reads the file from the location I specified. Anywhere else and it gets ignored.

    Yes, I have an extra space character in my code. It is ignored but you should have one after the comma.

    0
  • Subias Gilles

    Sorry, bad copy-paste, I meant my MWMMac can be reached via Library > Application support > ON1, not Library > ON1 as you said, but result the same as I can edit it. I'll try adding extra space character on latitude.

    (Yes I'm Mac user for 30 years now !)

    Thanks, I'll tell you later, here is time to cook !!!

    0
  • Brian Lawson Community moderator

    Yes, it is /Library/Application Support/ON1. I copy/pasted from another document by the guy who figured this out and the typo is in his file. Sorry about that. I've fixed it above, thanks.

    0
  • Subias Gilles

    Adding a space character, no change: map or whole world if no photo selected, just clic on map icon, or in browse mode, open a photo which has not geotag > Portland. Deleting ON1 .plist (mac), why not.

    Cook return ;-)

    0
  • Andrew Jones

    It would appear that my solution has issues.

    If I open ON1  then browse then select an image and then select "Map View" then the map shows my default location. It continues to do so whilst I am in the same folder.

    If however I change folder, I find myself back in Oregon!?

    Suggestions?

    0
  • Subias Gilles

    Map feature in ON1 is very poor for me for years, I posted some of my disappointments here (add map feature displaying on 1 general map all the geotagged photos -cf map in Apple Photos, or Acdsee map view-, at least those in cataloged folders, allow you to center the map on your favorite location, as this post is about etc). Common user is not at the Brian level !

    0
  • Brian Lawson Community moderator

    Andrew, I'm seeing the same thing happen when I change folders while leaving the Map view open. If I select a folder and the first, automatically selected image inside that folder has GPS coordinates in it then it goes to that location. If that auto selected image has no coords it is returning to Portland as you've described. There must be something else going on inside the program code that has nothing to do the the HTML we've been editing. When I change back to Grid view before moving to a new folder then reopen the Map view I get my default location again.

    Subias, I got a view of the whole world when I changed the zoom factor to 1.

    The program appears to be saving a state setting for the map view that is being restored when you leave the Map view open and you Quit the program. I would make changes to the zoom factor but it was stuck at viewing the whole world until I returned to Grid view, made the change, then relaunched Photo RAW and reopened the Map view. Then I would get the correct zoom setting I had set in the .html file.

    A lot of the things Subias finds disappointing may be out of ON1's control. The API for Mapbox may not allow multiple GPS locations to be set. I haven't gone through their documentation to find out what is possible.

    Subias, did you post your suggestions to the Photo RAW Project page?

    0

Please sign in to leave a comment.