OpenLayers Overview Map Control in Geoserver - dictionary

I am trying to add OpenLayers.Control.OverviewMap() to group of layers (geotiff with shp file) in Geoserver. Is there any way to automatically add this control to every map which I would like to display from Geoserver by OpenLayers? There already are some default control buttons like scale or navigations. I assume that this will require some changes in *js or other file in Geoserver, please let me know which one it will be.

Related

Does Heremaps support custom map URL similar to Bing Map?

Am I able to construct a custom URL using Heremap? For example, with Bing Map, I'm able to contruct a custom URL with various parameters and set the link to something like this for the user to click on:
https://bing.com/maps/default.aspx?rtp=adr.One%20Microsoft%20Way,%20Redmond,%20WA%2098052~pos.45.23423_-122.1232_MyPlace&rtop=0~1~0
This is the instructions for Bing Map to do this, but I can't find something similar for Heremap:
https://learn.microsoft.com/en-us/bingmaps/articles/create-a-custom-map-url
I don't see it documented anywhere, but I figured out a few ways to do this with the HEE We Go site.
To search by address or name, you can create a URL like: https://wego.here.com/search/[query]
For example: https://wego.here.com/search/One%20Microsoft%20Way,%20Redmond,%20WA%2098052
You can add ,[map style] if you want to also set the map style. where the map style can be; normal, satellite, terrain, traffic, or public_transport.
For example; https://wego.here.com/search/One%20Microsoft%20Way,%20Redmond,%20WA%2098052,satellite
If you want to go straight to a coordinate, you can use the following format:
https://wego.here.com/?map=[latitude],[longitude],[zoom],[map style]
For example: https://wego.here.com/?map=47.62114,-122.34654,18,satellite

2Sxc DNN: Custom Input Type: Image Cropper

I'm currently trying to extend the functionality of a 2sxc App in DNN. I created a new content-type and added my custom input-type (image cropper with cropper.js) as explained in this Tutorial:
How To Create Custom Input Fields (v11.2)
It currently looks like this:
And the Data is currently stored as a base64 string.
The last thing that is missing now, is to save the cropped image, if possible with 2sxc ADAM.
I found this Tutorial: Recipe: Form Files SaveInADAM in Your Custom WebAPI, but I don't know where to put the cshtml file.
Here is my current code:
How to save the image with 2sxc ADAM?
This sounds like a great idea.
Just before I guide you to completing this, I would like to note that you could also just save the crop coordinates (instead of the new image) and then use the built in image-resizer to crop to these at runtime.
If you want to do that, you could save the coordinates as json or something in the field.
Now if you really want to save the cropped image, use the SaveInAdam(...) command in your API controller https://docs.2sxc.org/api/dot-net/ToSic.Sxc.Dnn.ApiController.html#ToSic_Sxc_Dnn_ApiController_SaveInAdam_System_String_System_IO_Stream_System_String_System_String_System_Nullable_System_Guid__System_String_System_String_
You can also find examples of this in the Mobius App.

Using more than 2 marker presets

I want to use 3 markers in a script. I've started to use Kanji and Kiro marker preset without problem.
When i've started to add a third marker (a pattern with letterA.patt file via ar.js url), google chrome (and firefox) complained about a memory problem !
The only solution founded was to modify aframe-ar.js and added letterA as marker preset, like Kiro and Kanji.
Question1: what about that memory problem with my pattern ?
Question2: why not added more marker preset (letterD...) by default in aframe-ar.js ?
Best regards,
Emmanuel
Not really the right platform for this question. You can use any number of markers that you want, you're not limited to just two. The AR.js preset might be limited but you can add your own markers with a .patt file. You can create your AR.js ready tag using the ARjs marker generator or by uploading your model and image target to the echoAR platform and then download the image marker.
After you get you .patt file you can add it to your scene like so:
<a-marker type='pattern' url='./<path to your .patt>'>
Inside your marker just add whatever you would do in a preset marker, just don't forget to close the marker tag.

highlight a polygon while on click using kml

I am using kml file to draw polygons in google map. I am setting click events for those polygon which is working. Now I want the clicked polygon to be highlighted. I had tried the setOption() method, but it didn't work. Is it possible to change the color of polygon on clicking it?
If you are using KmlLayer (a guess), you can't change the properties of the Polygons. If you use a third party KML parser like geoxml3 or geoxml-v3 to render the polygons as native Google Maps API v3 objects you can change their properties (but whether the performance is acceptable will depend on how complex your KML is). You can also dynamically change Polygons in tiles rendered using FusionTablesLayer (import your KML into a Fusion Tabel).
Example changing the color of Polygons from KML rendered using geoxml3 on mouseover
If you are using KmlLayer (a guess), you can't change the properties of the Polygons. If you use a third party KML parser like geoxml3. Here is a link to that.. http://developers.cloudmade.com/projects/web-maps-api/examples/kml-and-geo-rss

Drupal Location CCK map does not center at location point

I have applied and configured CCK Location module to show node location on map (GMap, GMap location modules).
However there is small issue that map does not show location at the centre (address marker is off the screen and user must scroll through the map to find it ;-).
It looks like map is centred one map screen off to the left (to the west) from where it supposed to be to show marker at the centre.
I have tried to reinstall all those three modules, reset gmap macros to the simplest ones [gmap] all around but nothing helped.
Anyone knows what could be missing here?
Go to /admin/settings/gmap
Under the Default Map settings set the default size, zoom level and center of the map to what you want to show by default (before the location is selected).
Then go to /admin/content/node-type/[name-of-your-content-type]/fields/[name-of-your-location-cck-field]
(Basically click on the "configure" button after going to Manage fields for your content type)
In the GMap Macro, make sure it is something like this:
[gmap| zoom=7 | width=100% | height=400px ]
Note that it says A macro to be used as a base map for this field. This map will be recentered on the location, so the center is not that important.
See if this fixes your problem.
After few hours of struggling I have discovered conflict between GMap and (Tabs or CCK FieldGroup tabs) module.
I did put my location CCK map in field group as a tab. It looks like some javascript code conflicts there.
Till now I came up with 2 solutions:
Change your design and simply move gmap out of tab or place it on the first one.
Override css style of .ui-tabs-hide class. Change line with left:-15000px (or similar) to left:50% or left:(half-width-of-your-map-in-pixels)px.
Do not touch any other styles and everything should work fine.
Maybe there are better solutions. If yes - please share.

Resources